summaryrefslogtreecommitdiff
path: root/tests/classes
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-10-21 06:08:47 +0000
committerStanislav Malyshev <stas@php.net>2011-10-21 06:08:47 +0000
commitd81ea16ef14735b97f22702ca1a78c3674fd987e (patch)
tree520d4dd5ffdb6b59aee7cc19b10839ad6def922b /tests/classes
parent2cf34bc9fc30f6094f8291314bfd25f74511ceff (diff)
downloadphp-git-d81ea16ef14735b97f22702ca1a78c3674fd987e.tar.gz
Changed silent conversion of array to string to produce a notice. (Patrick)
Diffstat (limited to 'tests/classes')
-rwxr-xr-xtests/classes/array_access_010.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/classes/array_access_010.phpt b/tests/classes/array_access_010.phpt
index e60716dc1b..ad374d278c 100755
--- a/tests/classes/array_access_010.phpt
+++ b/tests/classes/array_access_010.phpt
@@ -12,7 +12,7 @@ class ArrayReferenceProxy implements ArrayAccess
function __construct(ArrayAccess $object, array &$element)
{
- echo __METHOD__ . "($element)\n";
+ echo __METHOD__ . "(Array)\n";
$this->object = $object;
$this->element = &$element;
}
@@ -23,17 +23,17 @@ class ArrayReferenceProxy implements ArrayAccess
}
function offsetGet($index) {
- echo __METHOD__ . "($this->element, $index)\n";
+ echo __METHOD__ . "(Array, $index)\n";
return isset($this->element[$index]) ? $this->element[$index] : NULL;
}
function offsetSet($index, $value) {
- echo __METHOD__ . "($this->element, $index, $value)\n";
+ echo __METHOD__ . "(Array, $index, $value)\n";
$this->element[$index] = $value;
}
function offsetUnset($index) {
- echo __METHOD__ . "($this->element, $index)\n";
+ echo __METHOD__ . "(Array, $index)\n";
unset($this->element[$index]);
}
}