diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
| commit | f8d795820e780a6322e054c26c581570613c14f0 (patch) | |
| tree | 99d3ae01ce564752807341c5743863b4c92513f8 /ext/spl/tests/arrayObject_magicMethods4.phpt | |
| parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
| download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz | |
Reindent phpt files
Diffstat (limited to 'ext/spl/tests/arrayObject_magicMethods4.phpt')
| -rw-r--r-- | ext/spl/tests/arrayObject_magicMethods4.phpt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ext/spl/tests/arrayObject_magicMethods4.phpt b/ext/spl/tests/arrayObject_magicMethods4.phpt index d6a6292fc0..e038a1e09c 100644 --- a/ext/spl/tests/arrayObject_magicMethods4.phpt +++ b/ext/spl/tests/arrayObject_magicMethods4.phpt @@ -3,33 +3,33 @@ SPL: ArrayObject: ensure the magic methods for property access of a subclass of --FILE-- <?php class C { - public $a = 1; - public $b = 2; - public $c = 3; + public $a = 1; + public $b = 2; + public $c = 3; - private $priv = 'secret'; + private $priv = 'secret'; } class UsesMagic extends ArrayObject { - public $b = "This should not be in the storage"; + public $b = "This should not be in the storage"; - function __get($name) { - $args = func_get_args(); - echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; - } - function __set($name, $value) { - $args = func_get_args(); - echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; - } - function __isset($name) { - $args = func_get_args(); - echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; - } - function __unset($name) { - $args = func_get_args(); - echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; - } + function __get($name) { + $args = func_get_args(); + echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; + } + function __set($name, $value) { + $args = func_get_args(); + echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; + } + function __isset($name) { + $args = func_get_args(); + echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; + } + function __unset($name) { + $args = func_get_args(); + echo "In " . __METHOD__ . "(" . implode($args, ',') . ")\n"; + } } $obj = new C; |
