php-src/Zend/tests/internal_class_variance.phpt

17 lines
197 B
Plaintext
Raw Normal View History

--TEST--
Internal class variance
--EXTENSIONS--
zend_test
--FILE--
<?php
$test = new _ZendTestChildClass;
try {
$test->returnsThrowable();
} catch (\Error) {
echo "OK";
}
?>
--EXPECT--
OK