php-src/Zend/tests/static_method_non_existing_class.phpt
2020-07-10 21:05:28 +02:00

16 lines
215 B
PHP

--TEST--
Calling a static method on a non-existing class
--FILE--
<?php
$str = "foo";
try {
Test::{$str . "bar"}();
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Class "Test" not found