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 /Zend/tests/002.phpt | |
parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz |
Reindent phpt files
Diffstat (limited to 'Zend/tests/002.phpt')
-rw-r--r-- | Zend/tests/002.phpt | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/Zend/tests/002.phpt b/Zend/tests/002.phpt index e89f71ef51..1311e3b570 100644 --- a/Zend/tests/002.phpt +++ b/Zend/tests/002.phpt @@ -4,45 +4,45 @@ func_get_arg() tests <?php function test1() { - var_dump(func_get_arg(-10)); - var_dump(func_get_arg(0)); - var_dump(func_get_arg(1)); + var_dump(func_get_arg(-10)); + var_dump(func_get_arg(0)); + var_dump(func_get_arg(1)); } function test2($a) { - var_dump(func_get_arg(0)); - var_dump(func_get_arg(1)); + var_dump(func_get_arg(0)); + var_dump(func_get_arg(1)); } function test3($a, $b) { - var_dump(func_get_arg(0)); - var_dump(func_get_arg(1)); - var_dump(func_get_arg(2)); + var_dump(func_get_arg(0)); + var_dump(func_get_arg(1)); + var_dump(func_get_arg(2)); } test1(); test1(10); test2(1); try { - test2(); + test2(); } catch (Throwable $e) { - echo "Exception: " . $e->getMessage() . "\n"; + echo "Exception: " . $e->getMessage() . "\n"; } test3(1,2); call_user_func("test1"); try { - call_user_func("test3", 1); + call_user_func("test3", 1); } catch (Throwable $e) { - echo "Exception: " . $e->getMessage() . "\n"; + echo "Exception: " . $e->getMessage() . "\n"; } call_user_func("test3", 1, 2); class test { - static function test1($a) { - var_dump(func_get_arg(0)); - var_dump(func_get_arg(1)); - } + static function test1($a) { + var_dump(func_get_arg(0)); + var_dump(func_get_arg(1)); + } } test::test1(1); |