php-src/tests/classes/property_override_privateStatic_privateStatic.phpt

33 lines
486 B
PHP

--TEST--
Redeclare inherited private static property as private static.
--FILE--
<?php
class A
{
private static $p = "A::p (static)";
static function showA()
{
echo self::$p . "\n";
}
}
class B extends A
{
private static $p = "B::p (static)";
static function showB()
{
echo self::$p . "\n";
}
}
A::showA();
B::showA();
B::showB();
?>
--EXPECTF--
A::p (static)
A::p (static)
B::p (static)