1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/ext/reflection/tests/ReflectionProperty_isReadable_invalid_scope.phpt
2026-02-27 14:26:06 +01:00

21 lines
303 B
PHP

--TEST--
Test ReflectionProperty::isReadable() invalid scope
--FILE--
<?php
class A {
public $prop;
}
$r = new ReflectionProperty('A', 'prop');
try {
$r->isReadable('B', null);
} catch (Error $e) {
echo $e::class, ': ', $e->getMessage(), "\n";
}
?>
--EXPECT--
Error: Class "B" not found