--TEST-- "enum_cases" function with invalid enum class --CONDITION-- \PHP_VERSION_ID >= 80100 --TEMPLATE-- {% for c in enum_cases('Twig\\Tests\\NonExistentEnum') %} {{~ c.name }} {% endfor %} --EXCEPTION-- Twig\Error\SyntaxError: The first argument of the "enum_cases" function must be the name of an enum, "Twig\Tests\NonExistentEnum" given in "index.twig" at line 2.