mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
Remove obsolete conditions in tests
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
"enum" function with invalid enum class
|
||||
--CONDITION--
|
||||
\PHP_VERSION_ID >= 80100
|
||||
--TEMPLATE--
|
||||
{% for c in enum('Twig\\Tests\\NonExistentEnum').cases() %}
|
||||
{{~ c.name }}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
"enum" function with missing \ escaping
|
||||
--CONDITION--
|
||||
\PHP_VERSION_ID >= 80100
|
||||
--TEMPLATE--
|
||||
{% for c in enum('Twig\Tests\DummyBackedEnum').cases() %}
|
||||
{{~ c.name }}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
"enum" function with invalid literal type
|
||||
--CONDITION--
|
||||
\PHP_VERSION_ID >= 80100
|
||||
--TEMPLATE--
|
||||
{% for c in enum(13).cases() %}
|
||||
{{~ c.name }}
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
--TEST--
|
||||
"enum" function
|
||||
--CONDITION--
|
||||
\PHP_VERSION_ID >= 80100
|
||||
--TEMPLATE--
|
||||
{{ enum('Twig\\Tests\\DummyBackedEnum').FOO.value }}
|
||||
{% for c in enum('Twig\\Tests\\DummyBackedEnum').cases() %}
|
||||
|
||||
Reference in New Issue
Block a user