mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
Remove a test that was a regression test for the C extension
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
--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
|
||||
Reference in New Issue
Block a user