--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 = [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 ['object' => $object] --EXPECT-- house.region.s
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
block_names_unicity.test | File | 316 B | 0644 |
|
combined_debug_info.test | File | 332 B | 0644 |
|
empty_token.test | File | 125 B | 0644 |
|
issue_1143.test | File | 488 B | 0644 |
|
multi_word_tests.test | File | 202 B | 0644 |
|
simple_xml_element.test | File | 480 B | 0644 |
|
strings_like_numbers.test | File | 166 B | 0644 |
|