Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php namespace Phalcon\Tests\Unit\Tag; use Phalcon\Tag; use Phalcon\Tests\Fixtures\Help..

Decoded Output download

<?php
  namespace Phalcon\Tests\Unit\Tag; use Phalcon\Tag; use Phalcon\Tests\Fixtures\Helpers\TagSetup; use UnitTester; class SelectStaticCest extends TagSetup { public function tagSelectStaticStringParameter(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - string as a parameter"); Tag::resetInput(); $name = "x_name"; $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_name">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($name, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameter(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - array as a parameter"); Tag::resetInput(); $params = array("x_name", "class" => "x_class"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithId(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - array as a parameters and id"); Tag::resetInput(); $params = array("x_name", "id" => "x_id", "class" => "x_class"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_id" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithNameNoId(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - name and no id in parameter"); Tag::resetInput(); $params = array("x_name", "id" => "x_id", "class" => "x_class"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_id" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithValue(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - value in parameters"); Tag::resetInput(); $params = array("x_name", "value" => "I", "class" => "x_class"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option selected="selected" value="I">Inactive</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithSetDefault(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - setDefault()"); Tag::resetInput(); $params = array("x_name", "class" => "x_class", "size" => "10"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_name" class="x_class" size="10">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option selected="selected" value="I">Inactive</option>" . PHP_EOL . "</select>"; Tag::setDefault("x_name", "I"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithDisplayTo(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - displayTo()"); Tag::resetInput(); $params = array("x_name", "class" => "x_class", "size" => "10"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_name" class="x_class" size="10">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option selected="selected" value="I">Inactive</option>" . PHP_EOL . "</select>"; Tag::displayTo("x_name", "I"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithSetDefaultElementNotPresent(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - setDefault() and element not present"); Tag::resetInput(); $params = array("x_name", "name" => "x_other", "class" => "x_class", "size" => "10"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_other" class="x_class" size="10">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; Tag::setDefault("x_name", "Z"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithDisplayToElementNotPresent(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - displayTo() and element not present"); Tag::resetInput(); $params = array("x_name", "name" => "x_other", "class" => "x_class", "size" => "10"); $options = array("A" => "Active", "I" => "Inactive"); $expected = "<select id="x_name" name="x_other" class="x_class" size="10">" . PHP_EOL . chr(9) . "<option value="A">Active</option>" . PHP_EOL . chr(9) . "<option value="I">Inactive</option>" . PHP_EOL . "</select>"; Tag::displayTo("x_name", "Z"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameter(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group array as a parameter"); Tag::resetInput(); $params = array("x_name", array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One")); $expected = "<select id="x_name" name="x_name">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithId(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group array as a parameters and id"); Tag::resetInput(); $params = array("x_name", "id" => "x_id", "class" => "x_class"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_id" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithNameNoId(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - name and no id in parameter"); Tag::resetInput(); $params = array("x_name", "id" => "x_id", "class" => "x_class"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_id" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithValue(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group value in parameters"); Tag::resetInput(); $params = array("x_name", "value" => "A1", "class" => "x_class"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_name" name="x_name" class="x_class">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option selected="selected" value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithSetDefault(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group setDefault()"); Tag::resetInput(); $params = array("x_name", "class" => "x_class", "size" => "10"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_name" name="x_name" class="x_class" size="10">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option selected="selected" value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; Tag::setDefault("x_name", "A2"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithDisplayTo(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group displayTo()"); Tag::resetInput(); $params = array("x_name", "class" => "x_class", "size" => "10"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_name" name="x_name" class="x_class" size="10">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option selected="selected" value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; Tag::displayTo("x_name", "A2"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithSetDefaultElementNotPresent(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group setDefault() and element not present"); Tag::resetInput(); $params = array("x_name", "name" => "x_other", "class" => "x_class", "size" => "10"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_name" name="x_other" class="x_class" size="10">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; Tag::setDefault("x_name", "I"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithDisplayToElementNotPresent(UnitTester $I) { $I->wantToTest("Tag - selectStatic() - opt group displayTo() and element not present"); Tag::resetInput(); $params = array("x_name", "name" => "x_other", "class" => "x_class", "size" => "10"); $options = array("Active" => array("A1" => "A One", "A2" => "A Two"), "B" => "B One"); $expected = "<select id="x_name" name="x_other" class="x_class" size="10">" . PHP_EOL . chr(9) . "<optgroup label="Active">" . PHP_EOL . chr(9) . "<option value="A1">A One</option>" . PHP_EOL . chr(9) . "<option value="A2">A Two</option>" . PHP_EOL . chr(9) . "</optgroup>" . PHP_EOL . chr(9) . "<option value="B">B One</option>" . PHP_EOL . "</select>"; Tag::displayTo("x_name", "I"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } } ?>

Did this file decode correctly?

Original Code

<?php
  namespace Phalcon\Tests\Unit\Tag; use Phalcon\Tag; use Phalcon\Tests\Fixtures\Helpers\TagSetup; use UnitTester; class SelectStaticCest extends TagSetup { public function tagSelectStaticStringParameter(UnitTester $I) { $I->wantToTest("\124\x61\x67\40\x2d\x20\x73\145\154\x65\143\x74\123\x74\x61\x74\x69\143\x28\x29\x20\x2d\40\163\164\x72\x69\x6e\147\40\x61\163\x20\x61\x20\x70\141\x72\x61\155\145\164\x65\x72"); Tag::resetInput(); $name = "\170\x5f\x6e\x61\x6d\145"; $options = array("\x41" => "\101\143\x74\151\x76\x65", "\x49" => "\111\x6e\141\143\x74\x69\x76\x65"); $expected = "\74\163\145\154\x65\143\164\40\151\144\75\42\170\x5f\x6e\141\x6d\x65\42\40\156\x61\155\145\x3d\x22\x78\x5f\156\x61\155\x65\42\76" . PHP_EOL . chr(9) . "\74\157\x70\164\x69\x6f\x6e\x20\166\x61\x6c\165\145\75\42\x41\42\x3e\x41\143\x74\151\x76\x65\x3c\x2f\157\x70\164\151\157\156\x3e" . PHP_EOL . chr(9) . "\74\157\160\164\151\157\x6e\x20\x76\141\154\165\x65\75\42\111\x22\x3e\111\156\x61\x63\164\x69\x76\145\x3c\x2f\157\160\x74\151\157\156\x3e" . PHP_EOL . "\74\x2f\x73\145\154\x65\143\164\x3e"; $actual = Tag::selectStatic($name, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameter(UnitTester $I) { $I->wantToTest("\124\x61\x67\x20\x2d\40\163\145\154\x65\x63\x74\x53\164\141\164\x69\x63\50\51\40\55\x20\x61\x72\x72\x61\171\x20\x61\163\x20\141\40\160\141\x72\x61\x6d\x65\164\145\x72"); Tag::resetInput(); $params = array("\170\x5f\x6e\141\x6d\x65", "\x63\154\141\163\163" => "\x78\137\x63\154\141\163\163"); $options = array("\101" => "\101\143\164\151\166\x65", "\111" => "\111\156\x61\x63\x74\151\x76\145"); $expected = "\74\x73\x65\x6c\145\143\164\40\x69\x64\75\42\170\137\x6e\141\155\x65\x22\40\156\141\x6d\x65\75\x22\170\x5f\x6e\141\x6d\x65\x22\x20\x63\154\141\x73\163\x3d\42\x78\x5f\143\x6c\x61\163\163\42\76" . PHP_EOL . chr(9) . "\x3c\x6f\x70\164\x69\x6f\x6e\x20\166\x61\x6c\165\145\75\42\101\x22\x3e\x41\143\164\151\166\145\x3c\57\x6f\x70\164\x69\157\156\x3e" . PHP_EOL . chr(9) . "\74\x6f\x70\x74\151\157\156\40\166\x61\x6c\x75\145\75\x22\x49\42\76\x49\x6e\x61\143\164\151\166\145\x3c\57\x6f\160\164\151\157\156\76" . PHP_EOL . "\74\57\163\145\x6c\145\x63\164\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithId(UnitTester $I) { $I->wantToTest("\124\x61\147\x20\x2d\x20\163\x65\x6c\145\143\x74\123\x74\141\x74\151\x63\x28\x29\40\55\x20\x61\x72\162\x61\171\x20\x61\x73\x20\x61\40\160\141\162\141\x6d\x65\164\145\x72\x73\x20\x61\x6e\x64\x20\151\x64"); Tag::resetInput(); $params = array("\170\x5f\x6e\141\x6d\145", "\151\x64" => "\170\x5f\151\144", "\x63\154\141\x73\163" => "\x78\137\143\154\x61\x73\163"); $options = array("\101" => "\x41\143\164\151\166\x65", "\111" => "\x49\x6e\141\143\164\x69\x76\x65"); $expected = "\74\x73\145\x6c\x65\x63\164\x20\x69\144\x3d\x22\170\137\x69\x64\42\40\156\141\x6d\x65\x3d\x22\x78\137\x6e\x61\x6d\x65\42\x20\143\x6c\141\x73\163\75\x22\170\137\x63\x6c\x61\163\163\42\76" . PHP_EOL . chr(9) . "\74\157\160\164\x69\157\x6e\40\166\141\154\165\x65\x3d\x22\x41\x22\76\x41\x63\x74\151\166\x65\x3c\x2f\x6f\160\164\x69\x6f\156\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\x70\164\x69\157\x6e\40\166\x61\x6c\165\145\75\42\111\42\76\x49\156\x61\143\x74\x69\166\x65\x3c\x2f\x6f\160\164\x69\157\x6e\x3e" . PHP_EOL . "\74\57\163\145\154\145\x63\x74\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithNameNoId(UnitTester $I) { $I->wantToTest("\x54\x61\x67\40\x2d\40\163\145\x6c\145\143\164\123\x74\x61\164\151\143\x28\x29\40\55\x20\x6e\141\x6d\x65\40\141\x6e\144\40\x6e\157\40\151\144\x20\x69\156\x20\160\x61\x72\x61\x6d\x65\164\x65\x72"); Tag::resetInput(); $params = array("\x78\x5f\156\x61\x6d\145", "\x69\x64" => "\x78\x5f\x69\x64", "\143\x6c\141\x73\163" => "\x78\x5f\143\x6c\141\x73\x73"); $options = array("\x41" => "\101\x63\x74\151\x76\x65", "\111" => "\111\156\141\x63\x74\x69\x76\x65"); $expected = "\74\x73\145\x6c\x65\x63\164\40\x69\x64\x3d\42\170\137\x69\144\x22\x20\x6e\x61\155\145\75\42\x78\137\156\x61\x6d\x65\x22\40\143\154\x61\163\x73\75\42\170\x5f\143\x6c\x61\x73\x73\42\x3e" . PHP_EOL . chr(9) . "\74\x6f\160\164\x69\157\156\40\x76\x61\x6c\x75\145\75\42\x41\x22\76\101\x63\164\151\166\145\74\x2f\157\x70\x74\151\x6f\x6e\x3e" . PHP_EOL . chr(9) . "\74\157\160\x74\x69\x6f\156\40\166\141\x6c\165\145\75\42\111\x22\76\111\156\x61\x63\x74\151\x76\145\74\x2f\x6f\160\x74\151\x6f\x6e\76" . PHP_EOL . "\74\x2f\x73\145\x6c\145\x63\164\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticArrayParameterWithValue(UnitTester $I) { $I->wantToTest("\124\141\x67\40\x2d\x20\163\145\x6c\145\x63\164\x53\x74\141\164\151\x63\x28\x29\x20\x2d\40\x76\141\154\165\x65\x20\151\156\40\160\x61\162\141\155\x65\x74\x65\x72\x73"); Tag::resetInput(); $params = array("\170\137\x6e\141\x6d\x65", "\x76\x61\154\x75\x65" => "\111", "\143\x6c\141\x73\x73" => "\x78\x5f\143\x6c\141\x73\163"); $options = array("\x41" => "\101\143\x74\x69\166\x65", "\x49" => "\x49\x6e\141\x63\164\x69\x76\145"); $expected = "\74\163\x65\154\x65\x63\x74\x20\151\144\75\x22\170\x5f\156\x61\x6d\145\42\x20\x6e\141\155\145\x3d\42\x78\137\x6e\141\x6d\145\42\40\x63\154\x61\x73\163\x3d\x22\170\137\143\154\x61\x73\x73\x22\76" . PHP_EOL . chr(9) . "\74\x6f\160\164\x69\x6f\156\40\166\x61\154\165\x65\x3d\42\x41\x22\76\x41\143\x74\x69\x76\145\74\x2f\157\160\164\151\157\x6e\76" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\x69\x6f\x6e\40\x73\x65\x6c\145\143\164\145\x64\75\x22\163\x65\x6c\x65\x63\x74\145\x64\x22\40\x76\141\154\x75\x65\x3d\x22\x49\42\x3e\x49\x6e\x61\x63\x74\151\166\145\x3c\x2f\x6f\160\x74\x69\157\156\76" . PHP_EOL . "\x3c\x2f\163\x65\154\x65\143\164\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithSetDefault(UnitTester $I) { $I->wantToTest("\x54\141\x67\40\x2d\40\x73\145\x6c\145\143\x74\123\164\x61\x74\151\x63\50\x29\40\55\x20\x73\x65\x74\x44\145\x66\141\165\154\164\x28\51"); Tag::resetInput(); $params = array("\x78\x5f\156\x61\x6d\x65", "\143\154\141\x73\163" => "\170\137\x63\154\141\163\163", "\x73\x69\x7a\x65" => "\x31\x30"); $options = array("\x41" => "\x41\143\164\x69\166\x65", "\111" => "\111\156\x61\143\164\151\x76\145"); $expected = "\x3c\163\x65\154\x65\x63\164\40\x69\x64\75\x22\x78\x5f\x6e\x61\x6d\145\x22\40\156\x61\155\x65\x3d\42\x78\137\x6e\x61\x6d\145\x22\40\x63\154\x61\163\163\75\x22\x78\137\x63\x6c\141\x73\163\42\40\x73\151\172\145\75\x22\x31\x30\42\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\160\164\151\x6f\x6e\x20\166\x61\154\x75\145\75\42\x41\42\x3e\x41\x63\164\x69\166\x65\x3c\x2f\x6f\x70\x74\x69\x6f\156\76" . PHP_EOL . chr(9) . "\x3c\157\160\164\151\157\156\40\x73\x65\154\x65\143\x74\x65\x64\x3d\42\x73\x65\x6c\145\143\x74\145\144\x22\x20\x76\141\154\x75\x65\75\42\x49\42\76\x49\x6e\141\x63\164\x69\166\145\x3c\57\x6f\x70\x74\x69\x6f\156\76" . PHP_EOL . "\x3c\57\163\x65\154\145\143\x74\76"; Tag::setDefault("\x78\137\156\141\155\x65", "\x49"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithDisplayTo(UnitTester $I) { $I->wantToTest("\x54\x61\147\x20\x2d\40\x73\145\154\x65\x63\164\123\x74\x61\x74\x69\143\x28\51\40\55\40\144\x69\163\160\154\x61\171\x54\x6f\50\x29"); Tag::resetInput(); $params = array("\170\137\156\x61\155\x65", "\x63\154\141\163\x73" => "\170\x5f\x63\x6c\141\x73\x73", "\163\x69\x7a\x65" => "\x31\x30"); $options = array("\101" => "\101\143\x74\x69\166\x65", "\x49" => "\111\156\141\143\164\x69\166\x65"); $expected = "\74\163\145\154\145\143\x74\40\151\x64\x3d\x22\170\x5f\156\141\x6d\145\x22\x20\156\141\155\145\75\42\170\137\156\x61\x6d\145\x22\x20\143\x6c\141\163\x73\x3d\42\x78\x5f\143\154\141\x73\163\x22\40\x73\151\x7a\x65\75\x22\x31\60\42\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\160\164\x69\157\x6e\40\x76\141\x6c\x75\x65\75\x22\101\42\76\101\143\x74\151\166\x65\74\x2f\x6f\160\164\151\157\156\76" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\151\157\x6e\40\163\145\154\x65\143\x74\145\144\75\x22\x73\x65\x6c\145\143\164\145\x64\x22\x20\166\141\x6c\165\x65\x3d\42\x49\42\76\x49\x6e\141\x63\x74\151\166\x65\74\x2f\x6f\160\164\151\x6f\x6e\x3e" . PHP_EOL . "\74\x2f\x73\x65\154\145\143\x74\x3e"; Tag::displayTo("\x78\137\x6e\x61\155\x65", "\111"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithSetDefaultElementNotPresent(UnitTester $I) { $I->wantToTest("\x54\141\147\40\55\x20\163\145\154\145\143\x74\123\164\141\164\151\x63\50\51\40\55\x20\163\x65\x74\x44\x65\146\141\x75\x6c\x74\50\51\40\x61\156\144\40\x65\x6c\145\x6d\x65\156\x74\40\x6e\157\x74\x20\160\x72\x65\x73\x65\156\x74"); Tag::resetInput(); $params = array("\x78\x5f\156\141\x6d\145", "\156\141\x6d\x65" => "\x78\137\157\164\x68\145\162", "\143\x6c\x61\x73\163" => "\170\x5f\x63\x6c\x61\163\163", "\x73\151\x7a\145" => "\61\60"); $options = array("\101" => "\x41\x63\x74\151\166\x65", "\x49" => "\111\156\x61\x63\x74\151\x76\x65"); $expected = "\74\163\145\154\x65\143\164\40\x69\144\75\x22\170\137\156\x61\155\145\x22\x20\x6e\x61\155\145\75\x22\170\137\x6f\x74\x68\145\x72\42\40\x63\x6c\x61\163\163\75\x22\170\137\x63\x6c\x61\163\x73\x22\40\163\x69\x7a\145\x3d\42\x31\60\x22\76" . PHP_EOL . chr(9) . "\x3c\x6f\x70\x74\151\157\x6e\40\x76\x61\154\165\x65\75\42\101\42\x3e\x41\143\164\151\x76\x65\74\x2f\x6f\x70\x74\x69\x6f\156\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\x70\x74\151\x6f\156\x20\x76\141\x6c\165\145\75\x22\111\x22\x3e\111\x6e\x61\143\164\x69\166\x65\74\57\x6f\x70\x74\x69\x6f\x6e\x3e" . PHP_EOL . "\x3c\x2f\163\x65\154\x65\x63\x74\76"; Tag::setDefault("\170\137\x6e\x61\x6d\145", "\132"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticWithDisplayToElementNotPresent(UnitTester $I) { $I->wantToTest("\124\141\147\x20\55\40\x73\x65\154\145\143\x74\123\x74\141\x74\x69\x63\50\51\x20\55\40\x64\151\x73\160\154\x61\171\124\x6f\50\x29\40\141\x6e\144\40\145\154\145\155\x65\x6e\x74\40\x6e\157\x74\x20\160\x72\x65\163\x65\x6e\164"); Tag::resetInput(); $params = array("\x78\x5f\x6e\x61\x6d\x65", "\x6e\x61\155\x65" => "\170\x5f\x6f\164\150\x65\x72", "\x63\154\141\163\x73" => "\170\137\143\x6c\x61\x73\163", "\x73\151\x7a\145" => "\61\60"); $options = array("\x41" => "\101\x63\164\151\x76\x65", "\111" => "\x49\156\141\143\x74\151\166\x65"); $expected = "\74\x73\x65\x6c\x65\143\164\x20\151\x64\75\42\170\x5f\156\141\155\145\x22\40\156\x61\155\x65\x3d\42\170\137\157\164\x68\x65\162\x22\x20\143\154\141\163\x73\x3d\42\x78\137\143\154\x61\163\163\x22\x20\x73\151\x7a\x65\75\x22\x31\60\x22\x3e" . PHP_EOL . chr(9) . "\74\157\160\x74\x69\x6f\x6e\x20\x76\x61\154\165\145\75\42\101\x22\76\x41\x63\164\151\x76\145\x3c\x2f\x6f\160\x74\x69\157\x6e\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\x70\164\151\x6f\156\40\x76\x61\154\165\x65\75\42\x49\x22\76\x49\x6e\x61\x63\x74\151\x76\x65\74\x2f\157\160\x74\x69\157\x6e\x3e" . PHP_EOL . "\x3c\x2f\x73\x65\154\145\143\164\x3e"; Tag::displayTo("\x78\137\x6e\141\x6d\145", "\x5a"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameter(UnitTester $I) { $I->wantToTest("\x54\x61\x67\x20\55\x20\163\145\x6c\x65\143\x74\x53\164\x61\x74\151\143\x28\51\x20\x2d\x20\x6f\x70\x74\x20\147\162\x6f\x75\160\40\x61\162\x72\141\171\x20\141\163\40\141\40\x70\141\x72\141\155\x65\164\x65\x72"); Tag::resetInput(); $params = array("\x78\137\x6e\141\x6d\x65", array("\x41\x63\164\x69\x76\x65" => array("\x41\x31" => "\101\40\117\156\145", "\101\62" => "\x41\40\124\167\x6f"), "\x42" => "\x42\x20\x4f\156\x65")); $expected = "\74\163\x65\154\145\x63\x74\x20\151\x64\x3d\42\170\137\x6e\141\x6d\145\x22\x20\156\x61\x6d\x65\75\x22\x78\x5f\156\141\155\x65\42\76" . PHP_EOL . chr(9) . "\74\157\x70\x74\x67\162\157\165\160\x20\154\x61\142\x65\154\75\x22\101\x63\x74\x69\166\x65\42\76" . PHP_EOL . chr(9) . "\x3c\157\160\x74\x69\157\156\x20\166\141\x6c\x75\145\x3d\x22\101\x31\42\x3e\101\x20\117\x6e\x65\74\57\157\160\x74\151\x6f\156\x3e" . PHP_EOL . chr(9) . "\74\157\160\164\x69\x6f\x6e\x20\166\x61\x6c\x75\x65\75\42\x41\x32\x22\x3e\x41\40\124\x77\157\74\x2f\157\x70\x74\151\157\x6e\76" . PHP_EOL . chr(9) . "\74\57\157\x70\x74\x67\162\157\x75\x70\x3e" . PHP_EOL . chr(9) . "\74\x6f\x70\164\151\157\x6e\x20\x76\141\154\x75\145\x3d\x22\102\42\76\102\x20\x4f\x6e\x65\x3c\57\157\160\164\151\157\156\76" . PHP_EOL . "\x3c\57\x73\145\154\x65\x63\x74\76"; $actual = Tag::selectStatic($params); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithId(UnitTester $I) { $I->wantToTest("\124\x61\x67\x20\x2d\40\x73\x65\x6c\145\x63\164\x53\164\x61\x74\x69\x63\50\x29\x20\x2d\40\x6f\x70\164\40\x67\x72\x6f\165\x70\x20\141\x72\162\x61\x79\40\141\163\x20\141\x20\x70\141\162\x61\155\145\164\x65\162\163\40\141\156\x64\x20\x69\144"); Tag::resetInput(); $params = array("\x78\137\156\x61\x6d\145", "\151\144" => "\x78\x5f\x69\x64", "\143\154\141\163\163" => "\170\137\x63\x6c\x61\163\163"); $options = array("\x41\x63\x74\151\166\145" => array("\101\61" => "\101\40\x4f\x6e\x65", "\101\x32" => "\x41\40\x54\167\x6f"), "\x42" => "\x42\40\x4f\156\x65"); $expected = "\x3c\x73\145\154\145\143\x74\40\x69\144\x3d\42\170\x5f\x69\144\42\40\156\x61\x6d\x65\75\42\170\137\156\141\x6d\145\42\x20\143\x6c\x61\163\x73\75\x22\x78\137\143\x6c\x61\163\163\42\76" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\147\x72\157\165\x70\x20\x6c\141\142\x65\154\x3d\x22\101\x63\164\151\x76\x65\x22\76" . PHP_EOL . chr(9) . "\74\157\160\x74\x69\x6f\156\40\166\141\154\x75\145\x3d\42\101\61\42\x3e\x41\40\x4f\156\x65\74\57\157\160\164\x69\x6f\156\x3e" . PHP_EOL . chr(9) . "\74\x6f\x70\x74\x69\x6f\156\x20\166\x61\x6c\165\x65\75\42\101\x32\x22\x3e\101\40\124\167\157\x3c\57\x6f\x70\x74\151\x6f\x6e\76" . PHP_EOL . chr(9) . "\74\x2f\x6f\160\x74\147\162\157\165\160\76" . PHP_EOL . chr(9) . "\x3c\x6f\x70\164\151\157\156\x20\x76\x61\154\165\145\75\x22\102\x22\76\x42\40\117\x6e\145\x3c\x2f\157\160\x74\151\157\156\x3e" . PHP_EOL . "\x3c\57\x73\x65\x6c\145\x63\x74\x3e"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithNameNoId(UnitTester $I) { $I->wantToTest("\x54\x61\x67\40\55\x20\163\x65\154\145\143\164\x53\164\141\x74\x69\143\x28\51\x20\55\x20\x6e\x61\155\x65\40\141\156\x64\x20\x6e\x6f\x20\x69\x64\x20\151\x6e\40\160\x61\x72\141\x6d\145\x74\x65\x72"); Tag::resetInput(); $params = array("\x78\x5f\x6e\141\155\x65", "\x69\x64" => "\x78\137\x69\x64", "\x63\154\x61\x73\x73" => "\170\137\143\154\x61\x73\x73"); $options = array("\x41\x63\x74\x69\x76\x65" => array("\101\61" => "\101\x20\x4f\156\145", "\101\62" => "\101\x20\x54\167\157"), "\102" => "\x42\40\x4f\x6e\145"); $expected = "\74\163\x65\154\145\x63\x74\40\151\x64\x3d\42\x78\x5f\151\144\x22\x20\156\x61\x6d\145\x3d\x22\170\137\156\x61\x6d\145\42\x20\143\154\141\x73\163\75\x22\170\x5f\143\154\x61\x73\163\42\76" . PHP_EOL . chr(9) . "\x3c\x6f\160\164\x67\x72\157\165\160\x20\x6c\141\142\145\x6c\75\42\101\x63\164\x69\x76\x65\42\x3e" . PHP_EOL . chr(9) . "\x3c\157\160\x74\151\x6f\x6e\x20\x76\x61\x6c\x75\145\75\x22\101\x31\42\x3e\x41\x20\x4f\156\x65\x3c\57\x6f\x70\164\x69\157\x6e\76" . PHP_EOL . chr(9) . "\74\x6f\160\x74\151\157\156\x20\166\141\x6c\165\x65\x3d\x22\101\62\42\76\101\x20\124\167\x6f\74\x2f\x6f\160\x74\x69\157\x6e\x3e" . PHP_EOL . chr(9) . "\74\57\x6f\160\x74\147\x72\157\165\x70\x3e" . PHP_EOL . chr(9) . "\74\x6f\160\x74\x69\157\156\40\166\141\x6c\165\145\75\x22\x42\x22\x3e\x42\40\x4f\x6e\x65\x3c\57\157\x70\x74\x69\x6f\156\76" . PHP_EOL . "\x3c\x2f\x73\x65\x6c\145\143\x74\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupArrayParameterWithValue(UnitTester $I) { $I->wantToTest("\124\141\147\40\55\40\163\x65\x6c\x65\143\x74\x53\164\x61\x74\x69\x63\x28\x29\x20\55\x20\x6f\160\164\40\147\x72\157\165\x70\40\166\141\154\x75\145\x20\x69\156\40\x70\x61\162\141\x6d\145\x74\x65\x72\163"); Tag::resetInput(); $params = array("\x78\x5f\156\141\x6d\x65", "\x76\x61\x6c\x75\145" => "\101\x31", "\143\154\141\163\163" => "\170\137\x63\x6c\x61\163\163"); $options = array("\x41\x63\164\x69\x76\x65" => array("\x41\61" => "\x41\40\117\x6e\x65", "\101\62" => "\x41\x20\124\x77\157"), "\102" => "\x42\x20\x4f\x6e\x65"); $expected = "\74\x73\x65\x6c\145\x63\x74\40\x69\144\x3d\x22\x78\137\x6e\x61\155\145\42\40\x6e\x61\155\145\75\42\170\137\x6e\141\x6d\x65\x22\40\143\x6c\x61\163\x73\x3d\42\170\137\143\154\141\x73\x73\42\76" . PHP_EOL . chr(9) . "\74\157\x70\x74\147\x72\x6f\x75\x70\40\154\141\x62\x65\x6c\75\42\x41\143\164\151\166\145\x22\x3e" . PHP_EOL . chr(9) . "\x3c\157\x70\164\x69\157\x6e\40\x73\145\154\145\x63\164\x65\x64\75\42\x73\x65\154\x65\x63\x74\145\144\42\40\166\x61\154\165\x65\75\x22\x41\61\42\76\x41\40\x4f\156\145\x3c\x2f\x6f\160\164\x69\157\x6e\76" . PHP_EOL . chr(9) . "\74\x6f\x70\x74\x69\157\156\x20\166\141\x6c\x75\x65\x3d\42\x41\x32\42\76\x41\40\124\167\157\x3c\x2f\157\160\x74\151\157\156\76" . PHP_EOL . chr(9) . "\x3c\57\157\x70\x74\x67\x72\157\x75\160\x3e" . PHP_EOL . chr(9) . "\74\x6f\x70\164\151\157\x6e\40\166\141\x6c\165\x65\x3d\x22\x42\42\76\102\x20\117\x6e\x65\x3c\x2f\157\x70\164\151\157\156\x3e" . PHP_EOL . "\x3c\x2f\x73\145\x6c\145\x63\164\76"; $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithSetDefault(UnitTester $I) { $I->wantToTest("\x54\x61\147\x20\x2d\40\163\145\154\x65\x63\164\x53\164\x61\164\x69\143\x28\x29\40\x2d\x20\157\x70\x74\40\x67\162\157\x75\x70\x20\163\145\x74\104\145\146\x61\x75\x6c\164\x28\51"); Tag::resetInput(); $params = array("\x78\x5f\x6e\x61\x6d\x65", "\x63\x6c\x61\x73\163" => "\170\137\x63\154\x61\x73\163", "\163\x69\172\145" => "\61\x30"); $options = array("\101\143\164\x69\x76\145" => array("\101\x31" => "\x41\x20\117\156\145", "\x41\x32" => "\x41\x20\124\167\157"), "\102" => "\x42\x20\x4f\x6e\145"); $expected = "\x3c\x73\145\154\x65\143\x74\40\x69\144\x3d\x22\x78\137\156\x61\155\145\42\x20\156\x61\x6d\x65\x3d\42\x78\x5f\x6e\141\x6d\x65\x22\40\143\x6c\x61\163\163\x3d\x22\x78\137\143\154\x61\163\163\x22\x20\x73\151\x7a\145\75\x22\61\60\42\x3e" . PHP_EOL . chr(9) . "\74\157\x70\x74\147\162\x6f\x75\160\40\x6c\x61\x62\145\154\75\42\101\143\164\151\166\145\x22\x3e" . PHP_EOL . chr(9) . "\74\x6f\x70\x74\151\x6f\x6e\40\x76\141\154\x75\145\75\x22\101\x31\x22\x3e\x41\x20\x4f\156\145\x3c\57\x6f\160\x74\x69\157\156\76" . PHP_EOL . chr(9) . "\x3c\x6f\x70\x74\x69\157\156\x20\x73\145\x6c\x65\143\x74\x65\144\x3d\42\x73\x65\x6c\145\143\x74\145\144\42\x20\x76\141\x6c\x75\145\x3d\42\101\62\42\x3e\x41\x20\124\x77\x6f\x3c\x2f\157\160\x74\151\x6f\156\76" . PHP_EOL . chr(9) . "\74\x2f\x6f\160\x74\147\x72\157\165\x70\x3e" . PHP_EOL . chr(9) . "\x3c\157\x70\164\151\157\156\x20\x76\141\x6c\165\145\x3d\x22\102\x22\x3e\102\x20\117\156\145\x3c\x2f\157\x70\x74\151\157\156\76" . PHP_EOL . "\x3c\x2f\x73\145\x6c\145\x63\x74\x3e"; Tag::setDefault("\170\x5f\x6e\x61\x6d\145", "\x41\62"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithDisplayTo(UnitTester $I) { $I->wantToTest("\x54\x61\x67\x20\x2d\x20\163\x65\x6c\x65\x63\164\123\x74\x61\x74\x69\143\x28\x29\40\x2d\40\157\160\x74\40\147\x72\x6f\165\160\40\144\151\163\x70\x6c\x61\171\124\x6f\x28\x29"); Tag::resetInput(); $params = array("\x78\x5f\156\141\155\145", "\143\154\x61\x73\163" => "\x78\137\x63\x6c\141\163\163", "\163\151\172\x65" => "\61\60"); $options = array("\x41\x63\x74\x69\x76\x65" => array("\101\x31" => "\101\x20\x4f\156\x65", "\101\62" => "\x41\40\x54\167\157"), "\x42" => "\102\x20\x4f\156\x65"); $expected = "\x3c\163\x65\x6c\x65\143\164\x20\151\144\75\42\x78\137\x6e\x61\x6d\x65\42\x20\156\141\155\145\75\x22\170\137\156\141\155\x65\42\x20\x63\154\x61\x73\163\75\42\170\137\143\154\x61\x73\x73\42\x20\163\151\x7a\145\x3d\x22\61\x30\x22\76" . PHP_EOL . chr(9) . "\x3c\x6f\160\x74\147\162\157\x75\x70\40\154\x61\x62\145\x6c\75\x22\x41\143\164\151\166\x65\42\76" . PHP_EOL . chr(9) . "\74\157\160\x74\151\x6f\156\40\x76\x61\x6c\x75\x65\x3d\42\101\x31\x22\x3e\x41\x20\117\156\x65\74\57\157\x70\164\x69\157\x6e\76" . PHP_EOL . chr(9) . "\74\x6f\x70\164\151\157\156\40\163\145\154\x65\143\164\145\x64\75\x22\x73\145\x6c\x65\x63\x74\145\144\42\40\166\141\x6c\165\x65\75\x22\101\x32\x22\x3e\101\40\124\167\x6f\x3c\x2f\x6f\160\164\151\157\x6e\76" . PHP_EOL . chr(9) . "\74\57\x6f\160\x74\x67\x72\x6f\165\x70\x3e" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\151\x6f\x6e\x20\x76\x61\x6c\165\x65\75\42\x42\x22\76\102\40\117\x6e\x65\74\57\157\x70\164\151\157\156\x3e" . PHP_EOL . "\74\57\163\x65\154\145\x63\x74\x3e"; Tag::displayTo("\x78\x5f\156\141\x6d\x65", "\101\x32"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithSetDefaultElementNotPresent(UnitTester $I) { $I->wantToTest("\124\141\x67\x20\55\40\x73\x65\154\145\143\164\123\164\x61\164\x69\143\50\51\x20\x2d\40\157\x70\164\40\147\x72\x6f\x75\x70\x20\163\x65\x74\x44\145\x66\141\165\154\x74\50\x29\x20\x61\x6e\x64\40\x65\154\x65\x6d\x65\x6e\164\x20\x6e\x6f\x74\x20\x70\162\145\x73\x65\156\164"); Tag::resetInput(); $params = array("\x78\x5f\156\141\x6d\x65", "\x6e\141\x6d\145" => "\x78\137\157\x74\x68\145\162", "\143\x6c\x61\x73\163" => "\x78\137\x63\154\x61\x73\163", "\x73\151\172\145" => "\x31\60"); $options = array("\101\143\x74\x69\x76\145" => array("\101\x31" => "\x41\x20\x4f\x6e\x65", "\101\62" => "\x41\40\124\167\157"), "\102" => "\102\x20\117\156\145"); $expected = "\74\x73\145\x6c\145\143\164\40\151\144\75\42\x78\137\x6e\141\155\145\42\40\x6e\x61\x6d\x65\75\42\x78\x5f\157\x74\x68\x65\x72\x22\x20\x63\154\x61\x73\x73\x3d\42\x78\137\143\154\141\163\x73\42\40\163\151\x7a\145\75\42\x31\60\42\76" . PHP_EOL . chr(9) . "\74\157\x70\164\x67\x72\x6f\x75\160\x20\x6c\141\142\x65\154\x3d\42\101\143\x74\x69\166\x65\x22\x3e" . PHP_EOL . chr(9) . "\x3c\x6f\160\x74\151\157\156\x20\x76\x61\154\165\x65\x3d\42\x41\61\42\76\101\x20\117\156\145\74\57\x6f\160\164\x69\x6f\156\x3e" . PHP_EOL . chr(9) . "\74\157\x70\x74\x69\157\x6e\x20\166\x61\154\165\145\75\42\x41\x32\42\x3e\101\x20\x54\x77\x6f\x3c\x2f\x6f\160\164\x69\157\156\x3e" . PHP_EOL . chr(9) . "\74\57\157\x70\164\x67\x72\157\x75\x70\76" . PHP_EOL . chr(9) . "\74\x6f\x70\164\151\157\x6e\x20\x76\x61\x6c\x75\145\75\x22\102\x22\x3e\102\40\x4f\156\x65\x3c\57\157\x70\x74\x69\157\x6e\x3e" . PHP_EOL . "\74\57\163\x65\x6c\145\x63\164\x3e"; Tag::setDefault("\x78\x5f\x6e\x61\155\x65", "\x49"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } public function tagSelectStaticOptGroupWithDisplayToElementNotPresent(UnitTester $I) { $I->wantToTest("\124\x61\147\40\x2d\x20\163\x65\154\x65\x63\164\x53\x74\x61\164\x69\x63\x28\x29\40\x2d\40\x6f\x70\x74\x20\147\x72\x6f\165\x70\40\144\151\163\160\154\x61\171\124\157\x28\x29\x20\141\156\144\x20\145\154\145\x6d\x65\156\164\40\x6e\x6f\164\x20\160\x72\x65\x73\x65\x6e\x74"); Tag::resetInput(); $params = array("\x78\137\x6e\x61\x6d\145", "\156\x61\x6d\x65" => "\170\x5f\x6f\164\x68\x65\x72", "\x63\154\x61\163\163" => "\170\x5f\x63\154\x61\x73\163", "\x73\151\172\145" => "\61\x30"); $options = array("\x41\x63\164\x69\166\145" => array("\101\61" => "\x41\x20\117\x6e\x65", "\x41\62" => "\x41\40\124\x77\157"), "\102" => "\102\x20\x4f\156\145"); $expected = "\x3c\x73\145\154\x65\143\x74\40\x69\x64\x3d\42\x78\137\156\141\x6d\x65\42\40\156\x61\x6d\x65\x3d\42\170\137\157\x74\150\x65\162\x22\x20\x63\x6c\x61\163\x73\75\x22\x78\137\143\x6c\141\163\x73\x22\x20\x73\151\172\x65\x3d\42\x31\60\x22\x3e" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\x67\162\x6f\x75\160\40\154\141\142\145\154\75\42\x41\x63\x74\151\166\x65\42\76" . PHP_EOL . chr(9) . "\x3c\157\x70\x74\x69\x6f\156\x20\x76\x61\x6c\x75\x65\75\42\101\61\42\76\101\x20\117\156\x65\74\x2f\157\160\164\151\x6f\x6e\76" . PHP_EOL . chr(9) . "\x3c\157\160\x74\151\157\156\40\x76\141\154\165\145\x3d\x22\101\x32\42\x3e\101\x20\124\x77\157\74\x2f\157\x70\164\x69\157\x6e\76" . PHP_EOL . chr(9) . "\74\x2f\157\160\164\147\x72\157\165\160\76" . PHP_EOL . chr(9) . "\74\157\x70\164\x69\x6f\x6e\40\x76\x61\154\x75\145\x3d\x22\102\42\x3e\102\40\x4f\156\x65\x3c\x2f\x6f\x70\164\x69\157\156\x3e" . PHP_EOL . "\74\x2f\x73\x65\154\x65\x63\164\x3e"; Tag::displayTo("\x78\137\156\141\155\x65", "\x49"); $actual = Tag::selectStatic($params, $options); Tag::resetInput(); $I->assertSame($expected, $actual); } }

Function Calls

None

Variables

None

Stats

MD5 71aea201fdc1c57d6b95e2fe35084249
Eval Count 0
Decode Time 168 ms