summaryrefslogtreecommitdiff
path: root/tests/classes/array_access_003.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/array_access_003.phpt')
-rw-r--r--tests/classes/array_access_003.phpt14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/classes/array_access_003.phpt b/tests/classes/array_access_003.phpt
index 3e631125e7..8924d1575f 100644
--- a/tests/classes/array_access_003.phpt
+++ b/tests/classes/array_access_003.phpt
@@ -4,7 +4,7 @@ ZE2 ArrayAccess::offsetGet ambiguties
error_reporting=4095
--FILE--
<?php
-class object implements ArrayAccess {
+class ObjectOne implements ArrayAccess {
public $a = array('1st', 1, 2=>'3rd', '4th'=>4);
@@ -37,7 +37,7 @@ class object implements ArrayAccess {
}
}
-$obj = new Object;
+$obj = new ObjectOne;
var_dump($obj[1]);
var_dump($obj[2]);
@@ -47,13 +47,13 @@ var_dump($obj[2]);
?>
===DONE===
--EXPECTF--
-object::offsetGet(1)
+ObjectOne::offsetGet(1)
string(6) "fooBar"
-object::offsetGet(2)
+ObjectOne::offsetGet(2)
int(1)
-object::offsetGet(2)
+ObjectOne::offsetGet(2)
-Notice: Indirect modification of overloaded element of object has no effect in %sarray_access_003.php on line 39
-object::offsetGet(2)
+Notice: Indirect modification of overloaded element of ObjectOne has no effect in %sarray_access_003.php on line 39
+ObjectOne::offsetGet(2)
int(1)
===DONE===