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/gc_038.phpt | |
parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz |
Reindent phpt files
Diffstat (limited to 'Zend/tests/gc_038.phpt')
-rw-r--r-- | Zend/tests/gc_038.phpt | 126 |
1 files changed, 63 insertions, 63 deletions
diff --git a/Zend/tests/gc_038.phpt b/Zend/tests/gc_038.phpt index 737025ae2d..d3219531d6 100644 --- a/Zend/tests/gc_038.phpt +++ b/Zend/tests/gc_038.phpt @@ -5,115 +5,115 @@ zend.enable_gc = 1 --FILE-- <?php function test_add() { - $x = new stdClass; - $x->x= $x; - @$x += 5; - $n = gc_collect_cycles(); - echo "+=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x += 5; + $n = gc_collect_cycles(); + echo "+=\t$n\n"; } test_add(); function test_sub() { - $x = new stdClass; - $x->x= $x; - @$x -= 5; - $n = gc_collect_cycles(); - echo "-=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x -= 5; + $n = gc_collect_cycles(); + echo "-=\t$n\n"; } test_sub(); function test_mul() { - $x = new stdClass; - $x->x= $x; - @$x *= 5; - $n = gc_collect_cycles(); - echo "*=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x *= 5; + $n = gc_collect_cycles(); + echo "*=\t$n\n"; } test_mul(); function test_div() { - $x = new stdClass; - $x->x= $x; - @$x /= 5; - $n = gc_collect_cycles(); - echo "/=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x /= 5; + $n = gc_collect_cycles(); + echo "/=\t$n\n"; } test_div(); function test_mod() { - $x = new stdClass; - $x->x= $x; - @$x %= 5; - $n = gc_collect_cycles(); - echo "%=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x %= 5; + $n = gc_collect_cycles(); + echo "%=\t$n\n"; } test_mod(); function test_sl() { - $x = new stdClass; - $x->x= $x; - @$x <<= 5; - $n = gc_collect_cycles(); - echo "<<=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x <<= 5; + $n = gc_collect_cycles(); + echo "<<=\t$n\n"; } test_sl(); function test_sr() { - $x = new stdClass; - $x->x= $x; - @$x >>= 5; - $n = gc_collect_cycles(); - echo ">>=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x >>= 5; + $n = gc_collect_cycles(); + echo ">>=\t$n\n"; } test_sr(); function test_or() { - $x = new stdClass; - $x->x= $x; - @$x |= 1; - $n = gc_collect_cycles(); - echo "|=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x |= 1; + $n = gc_collect_cycles(); + echo "|=\t$n\n"; } test_or(); function test_and() { - $x = new stdClass; - $x->x= $x; - @$x &= 1; - $n = gc_collect_cycles(); - echo "&=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x &= 1; + $n = gc_collect_cycles(); + echo "&=\t$n\n"; } test_and(); function test_xor() { - $x = new stdClass; - $x->x= $x; - @$x ^= 1; - $n = gc_collect_cycles(); - echo "^=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x ^= 1; + $n = gc_collect_cycles(); + echo "^=\t$n\n"; } test_xor(); function test_pow() { - $x = new stdClass; - $x->x= $x; - @$x **= 1; - $n = gc_collect_cycles(); - echo "**=\t$n\n"; + $x = new stdClass; + $x->x= $x; + @$x **= 1; + $n = gc_collect_cycles(); + echo "**=\t$n\n"; } test_pow(); class Y { - function __toString() { - return "y"; - } + function __toString() { + return "y"; + } } function test_concat() { - $x = new Y; - $x->x= $x; - @$x .= "x"; - $n = gc_collect_cycles(); - echo ".=\t$n\n"; + $x = new Y; + $x->x= $x; + @$x .= "x"; + $n = gc_collect_cycles(); + echo ".=\t$n\n"; } test_concat(); ?> |