diff options
Diffstat (limited to 'Zend/tests/bug30451.phpt')
-rw-r--r-- | Zend/tests/bug30451.phpt | 72 |
1 files changed, 36 insertions, 36 deletions
diff --git a/Zend/tests/bug30451.phpt b/Zend/tests/bug30451.phpt index 91d51a68f..210f08757 100644 --- a/Zend/tests/bug30451.phpt +++ b/Zend/tests/bug30451.phpt @@ -1,36 +1,36 @@ ---TEST--
-Bug #30451 (static properties permissions broken)
---FILE--
-<?php
-
-class A {
-
- protected static $property = TRUE;
-
- protected static function method() {
- return TRUE;
- }
-
-}
-
-class B extends A {
-
- public function __construct() {
-
- var_dump(self::method());
- var_dump(parent::method());
-
- var_dump(self::$property);
- var_dump(parent::$property);
-
- }
-
-}
-
-new B;
-?>
---EXPECT--
-bool(true)
-bool(true)
-bool(true)
-bool(true)
+--TEST-- +Bug #30451 (static properties permissions broken) +--FILE-- +<?php + +class A { + + protected static $property = TRUE; + + protected static function method() { + return TRUE; + } + +} + +class B extends A { + + public function __construct() { + + var_dump(self::method()); + var_dump(parent::method()); + + var_dump(self::$property); + var_dump(parent::$property); + + } + +} + +new B; +?> +--EXPECT-- +bool(true) +bool(true) +bool(true) +bool(true) |