php-src/tests/classes/static_properties_001.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
255 B
PHP

--TEST--
ZE2 Initializing static properties to arrays
--FILE--
<?php
class test {
static public $ar = array();
}
var_dump(test::$ar);
test::$ar[] = 1;
var_dump(test::$ar);
echo "Done\n";
?>
--EXPECT--
array(0) {
}
array(1) {
[0]=>
int(1)
}
Done