1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 17:52:16 +01:00
Files
archived-php-src/ext/reflection/tests/bug41884.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

26 lines
385 B
PHP

--TEST--
Bug #41884 (ReflectionClass::getDefaultProperties() does not handle static attributes)
--FILE--
<?php
class Foo
{
protected static $fooStatic = 'foo';
protected $foo = 'foo';
}
$class = new ReflectionClass('Foo');
var_dump($class->getDefaultProperties());
echo "Done\n";
?>
--EXPECT--
array(2) {
["fooStatic"]=>
string(3) "foo"
["foo"]=>
string(3) "foo"
}
Done