Remove a test that was a regression test for the C extension

This commit is contained in:
Fabien Potencier
2022-12-26 12:42:02 +01:00
parent 6642c3a520
commit ef7a5ef2e3
-23
View File
@@ -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