summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRod Elias <rodiney@fretebras.com.br>2020-05-11 11:08:17 -0300
committerNikita Popov <nikita.ppv@gmail.com>2020-05-12 17:00:11 +0200
commit682e2f6c20ef931df04105ddf1ccaf2256f00cbb (patch)
tree712b476102b2636e9700a9aa142588ae5430b262 /tests
parent16f23cd1590115c035549cbb0cfcb9ed9e22edbc (diff)
downloadphp-git-682e2f6c20ef931df04105ddf1ccaf2256f00cbb.tar.gz
Trim trailing whitespaces and fix code style
Closes GH-5554.
Diffstat (limited to 'tests')
-rw-r--r--tests/lang/passByReference_010.phpt38
1 files changed, 19 insertions, 19 deletions
diff --git a/tests/lang/passByReference_010.phpt b/tests/lang/passByReference_010.phpt
index 9606d4f842..24b108a174 100644
--- a/tests/lang/passByReference_010.phpt
+++ b/tests/lang/passByReference_010.phpt
@@ -10,41 +10,41 @@ function f(&$a) {
echo "\n\n---> Pass constant assignment by reference:\n";
try {
- f($a="a.original");
- var_dump($a);
+ f($a="a.original");
+ var_dump($a);
} catch (Throwable $e) {
- echo "Exception: " . $e->getMessage() ."\n";
+ echo "Exception: " . $e->getMessage() ."\n";
}
echo "\n\n---> Pass variable assignment by reference:\n";
try {
- unset($a);
- $a = "a.original";
- f($b = $a);
- var_dump($a);
+ unset($a);
+ $a = "a.original";
+ f($b = $a);
+ var_dump($a);
} catch (Throwable $e) {
- echo "Exception: " . $e->getMessage() ."\n";
+ echo "Exception: " . $e->getMessage() ."\n";
}
echo "\n\n---> Pass reference assignment by reference:\n";
try {
- unset($a, $b);
- $a = "a.original";
- f($b =& $a);
- var_dump($a);
+ unset($a, $b);
+ $a = "a.original";
+ f($b =& $a);
+ var_dump($a);
} catch (Throwable $e) {
- echo "Exception: " . $e->getMessage() ."\n";
+ echo "Exception: " . $e->getMessage() ."\n";
}
echo "\n\n---> Pass concat assignment by reference:\n";
try {
- unset($a, $b);
- $b = "b.original";
- $a = "a.original";
- f($b .= $a);
- var_dump($a);
+ unset($a, $b);
+ $b = "b.original";
+ $a = "a.original";
+ f($b .= $a);
+ var_dump($a);
} catch (Throwable $e) {
- echo "Exception: " . $e->getMessage() ."\n";
+ echo "Exception: " . $e->getMessage() ."\n";
}
?>