summaryrefslogtreecommitdiff
path: root/Zend/tests/bug21888.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug21888.phpt')
-rwxr-xr-xZend/tests/bug21888.phpt39
1 files changed, 0 insertions, 39 deletions
diff --git a/Zend/tests/bug21888.phpt b/Zend/tests/bug21888.phpt
deleted file mode 100755
index 43b19c1e8b..0000000000
--- a/Zend/tests/bug21888.phpt
+++ /dev/null
@@ -1,39 +0,0 @@
---TEST--
-Bug #21888 (protected property and protected method of the same name)
---SKIPIF--
-<?php
- if (version_compare(zend_version(), '2.0.0-dev', '<')) die('skip ZendEngine 2 is needed');
-?>
---FILE--
-<?php
-class mom {
-
- protected $prot = "protected property\n";
-
- protected function prot() {
- print "protected method\n";
- }
-}
-
-class child extends mom {
-
- public function callMom() {
- $this->prot();
- }
-
- public function viewMom() {
- print $this->prot;
- }
-
-}
-
-$c = new child();
-$c->callMom();
-$c->viewMom();
-?>
---EXPECT--
-protected method
-protected property
---EXPECT--
-protected method
-protected property