Skip to content

Commit de3156f

Browse files
committed
Indent + test fix for Linux/Win
1 parent a277a7c commit de3156f

File tree

6 files changed

+10
-18
lines changed

6 files changed

+10
-18
lines changed

Zend/tests/arrow_functions/007.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ zend.assertions=1
88
// TODO We're missing parentheses for the direct call
99

1010
try {
11-
assert((fn() => false)());
11+
assert((fn() => false)());
1212
} catch (AssertionError $e) {
1313
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1414
}
1515

1616
try {
17-
assert((fn&(int... $args): ?bool => $args[0])(false));
17+
assert((fn&(int... $args): ?bool => $args[0])(false));
1818
} catch (AssertionError $e) {
1919
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
2020
}

Zend/tests/assert/bug70528.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ class Bar {}
1010

1111
$bar = "Bar";
1212
try {
13-
assert(new \stdClass instanceof $bar);
13+
assert(new \stdClass instanceof $bar);
1414
} catch (\AssertionError $e) {
1515
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1616
}
1717
try {
18-
assert(new \stdClass instanceof Bar);
18+
assert(new \stdClass instanceof Bar);
1919
} catch (\AssertionError $e) {
2020
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
2121
}
2222
try {
23-
assert(new \stdClass instanceof \Foo\Bar);
23+
assert(new \stdClass instanceof \Foo\Bar);
2424
} catch (\AssertionError $e) {
2525
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
2626
}

Zend/tests/ast/ast_serialize_backtick_literal.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ zend.assertions=1
66
<?php
77

88
try {
9-
assert(false && `echo -n ""`);
9+
assert(false && `echo -n ""`);
1010
} catch (AssertionError $e) {
1111
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1212
}

Zend/tests/ast/zend-pow-assign.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ zend.assertions=1
66
<?php
77

88
try {
9-
assert(false && ($a **= 2));
9+
assert(false && ($a **= 2));
1010
} catch (AssertionError $e) {
1111
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1212
}

Zend/tests/attributes/012_ast_export.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ zend.assertions=1
66
<?php
77

88
try {
9-
assert(0 && ($a = #[A1] #[A2] function ($a, #[A3(1)] $b) { }));
9+
assert(0 && ($a = #[A1] #[A2] function ($a, #[A3(1)] $b) { }));
1010
} catch (AssertionError $e) {
1111
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1212
}
1313

1414
try {
15-
assert(0 && ($a = #[A1(1, 2, 1 + 2)] fn () => 1));
15+
assert(0 && ($a = #[A1(1, 2, 1 + 2)] fn () => 1));
1616
} catch (AssertionError $e) {
1717
echo 'assert(): ', $e->getMessage(), ' failed', PHP_EOL;
1818
}

Zend/tests/exception_011.phpt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,11 @@
22
Test exception doesn't cause RSHUTDOWN bypass, variation 0
33
--INI--
44
zend.assertions=1
5-
assert.bail=1
6-
assert.exception=1
75
--FILE--
86
<?php
97

108
define ("XXXXX", 1);
11-
try {
12-
assert(false);
13-
} catch (AssertionError $error) {
14-
echo "Caught\n";
15-
}
9+
assert(false);
1610

1711
?>
1812
--EXPECTHEADERS--
@@ -23,5 +17,3 @@ Stack trace:
2317
#0 %sexception_011.php(%d): assert(false, 'assert(false)')
2418
#1 {main}
2519
thrown in %sexception_011.php on line %d
26-
27-
Deprecated: PHP Startup: assert.bail INI setting is deprecated in Unknown on line 0

0 commit comments

Comments
 (0)