summaryrefslogtreecommitdiff
path: root/tests/classes/array_access_007.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/classes/array_access_007.phpt')
-rw-r--r--tests/classes/array_access_007.phpt58
1 files changed, 29 insertions, 29 deletions
diff --git a/tests/classes/array_access_007.phpt b/tests/classes/array_access_007.phpt
index f0dce8a3ad..37a3255d6f 100644
--- a/tests/classes/array_access_007.phpt
+++ b/tests/classes/array_access_007.phpt
@@ -4,35 +4,35 @@ ZE2 ArrayAccess and [] assignment
<?php
class OverloadedArray implements ArrayAccess {
- public $realArray;
-
- function __construct() {
- $this->realArray = array();
- }
-
- function offsetExists($index) {
- return array_key_exists($this->realArray, $index);
- }
-
- function offsetGet($index) {
- return $this->realArray[$index];
- }
-
- function offsetSet($index, $value) {
- if (is_null($index)) {
- $this->realArray[] = $value;
- } else {
- $this->realArray[$index] = $value;
- }
- }
-
- function offsetUnset($index) {
- unset($this->realArray[$index]);
- }
-
- function dump() {
- var_dump($this->realArray);
- }
+ public $realArray;
+
+ function __construct() {
+ $this->realArray = array();
+ }
+
+ function offsetExists($index) {
+ return array_key_exists($this->realArray, $index);
+ }
+
+ function offsetGet($index) {
+ return $this->realArray[$index];
+ }
+
+ function offsetSet($index, $value) {
+ if (is_null($index)) {
+ $this->realArray[] = $value;
+ } else {
+ $this->realArray[$index] = $value;
+ }
+ }
+
+ function offsetUnset($index) {
+ unset($this->realArray[$index]);
+ }
+
+ function dump() {
+ var_dump($this->realArray);
+ }
}
$a = new OverloadedArray;