php-src/ext/reflection/tests/ReflectionObject_isInternal_basic.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

23 lines
521 B
PHP

--TEST--
ReflectionObject::isInternal() - basic function test
--FILE--
<?php
class C {
}
$r1 = new ReflectionObject(new stdClass);
$r2 = new ReflectionObject(new ReflectionClass('C'));
$r3 = new ReflectionObject(new ReflectionProperty('Exception', 'message'));
$r4 = new ReflectionObject(new Exception);
$r5 = new ReflectionObject(new C);
var_dump($r1->isInternal(), $r2->isInternal(), $r3->isInternal(),
$r4->isInternal(), $r5->isInternal());
?>
--EXPECT--
bool(true)
bool(true)
bool(true)
bool(true)
bool(false)