summaryrefslogtreecommitdiff
path: root/tests/lang/030.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/030.phpt')
-rw-r--r--tests/lang/030.phpt38
1 files changed, 0 insertions, 38 deletions
diff --git a/tests/lang/030.phpt b/tests/lang/030.phpt
deleted file mode 100644
index ba809c8e31..0000000000
--- a/tests/lang/030.phpt
+++ /dev/null
@@ -1,38 +0,0 @@
---TEST--
-$this in constructor test
---POST--
---GET--
---FILE--
-<?php
-class foo {
- function foo($name) {
- $GLOBALS['List']= &$this;
- $this->Name = $name;
- $GLOBALS['List']->echoName();
- }
-
- function echoName() {
- $GLOBALS['names'][]=$this->Name;
- }
-}
-
-function &foo2(&$foo) {
- return $foo;
-}
-
-
-$bar1 =& new foo('constructor');
-$bar1->Name = 'outside';
-$bar1->echoName();
-$List->echoName();
-
-$bar1 =& foo2(new foo('constructor'));
-$bar1->Name = 'outside';
-$bar1->echoName();
-
-$List->echoName();
-
-print ($names==array('constructor','outside','outside','constructor','outside','outside')) ? 'success':'failure';
-?>
---EXPECT--
-success