php-src/Zend/tests/constexpr/constant_expressions_exceptions_002.phpt
DanielEScherzer 7b8a61a18c
Zend/tests: merge constant_expressions into constexpr, update names (#17872)
While reviewing the existing tests in the `constexpr` directory, I found that
some of the names were not updated to reflect the contents when the contents
were changed in #9301.

Follow-up to #15638
2025-02-21 18:37:39 +00:00

14 lines
357 B
PHP

--TEST--
Constant Expressions with unsupported operands 002
--FILE--
<?php
try {
require("constant_expressions_exceptions.inc");
} catch (Error $e) {
echo "\nException: " . $e->getMessage() . " in " , $e->getFile() . " on line " . $e->getLine() . "\n";
}
?>
DONE
--EXPECTF--
Exception: Unsupported operand types: array - array in %s on line %d
DONE