diff options
Diffstat (limited to 'tests/classes/array_access_006.phpt')
| -rw-r--r-- | tests/classes/array_access_006.phpt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tests/classes/array_access_006.phpt b/tests/classes/array_access_006.phpt index babc808cb4..7891d2aca4 100644 --- a/tests/classes/array_access_006.phpt +++ b/tests/classes/array_access_006.phpt @@ -4,27 +4,27 @@ ZE2 ArrayAccess and ASSIGN_OP operators (+=) <?php class OverloadedArray implements ArrayAccess { - public $realArray; + public $realArray; - function __construct() { - $this->realArray = array(1,2,3); - } + function __construct() { + $this->realArray = array(1,2,3); + } - function offsetExists($index) { - return array_key_exists($this->realArray, $index); - } + function offsetExists($index) { + return array_key_exists($this->realArray, $index); + } - function offsetGet($index) { - return $this->realArray[$index]; - } + function offsetGet($index) { + return $this->realArray[$index]; + } - function offsetSet($index, $value) { - $this->realArray[$index] = $value; - } + function offsetSet($index, $value) { + $this->realArray[$index] = $value; + } - function offsetUnset($index) { - unset($this->realArray[$index]); - } + function offsetUnset($index) { + unset($this->realArray[$index]); + } } $a = new OverloadedArray; |
