Skip to content

Commit d0d1425

Browse files
committed
Add closing PHP tag in tests
1 parent 22dcd98 commit d0d1425

File tree

8 files changed

+11
-3
lines changed

8 files changed

+11
-3
lines changed

Zend/tests/partial_application/rfc_examples_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ foreach ($tests as $test => [$pfa, $closure]) {
132132
echo "PFA is not equivalent to closure\n";
133133
}
134134
}
135+
136+
?>
135137
--EXPECT--
136138
# Manually specify the first two values, and pull the rest "as is"
137139
# Manually specify the first two values, and pull the rest "as is" (2)

Zend/tests/partial_application/rfc_examples_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ foreach ($tests as $test => [$pfa, $closure]) {
8787
echo "PFA is not equivalent to closure\n";
8888
}
8989
}
90+
91+
?>
9092
--EXPECTF--
9193
# FCC equivalent. The signature is unchanged
9294
# Provide some values, but allow the variadic to remain variadic

Zend/tests/partial_application/rfc_examples_003.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ try {
2525
echo $e->getMessage(), "\n";
2626
}
2727

28+
?>
2829
--EXPECTF--
2930
not enough arguments or placeholders for application of stuff, 1 given and at least 4 expected, declared in %s on line %d
3031
too many arguments or placeholders for application of stuff, 6 given and a maximum of 5 expected, declared in %s on line %d

Zend/tests/partial_application/rfc_examples_004.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ if (time() > 0) {
99

1010
stuff(i:1, ?, ?, ?, ?);
1111

12+
?>
1213
--EXPECTF--
1314
Fatal error: Cannot use positional argument after named argument in %s on line %d

Zend/tests/partial_application/rfc_examples_005.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ if (time() > 0) {
99

1010
stuff(?, ?, ?, p: $point, ?);
1111

12+
?>
1213
--EXPECTF--
1314
Fatal error: Cannot use positional argument after named argument in %s on line %d

Zend/tests/partial_application/rfc_examples_006.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $f = f(?, ?);
1515

1616
$f(1, 2);
1717

18+
?>
1819
--EXPECT--
1920
2
2021
int(1)

Zend/tests/partial_application/rfc_examples_007.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $partial = speak(?, getArg());
2020
print "Arnaud\n";
2121
$partial('Larry');
2222

23+
?>
2324
--EXPECT--
2425
Arnaud
2526
getArg

Zend/tests/partial_application/variation_call_001.phpt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Param {
1111

1212
class Foo {
1313
public function method($a, $b) {
14-
printf("%s: %s, %s\n", get_called_class(), $a, $b);
14+
printf("%s: %s, %s\n", get_called_class(), $a, $b);
1515
}
1616
}
1717

@@ -24,8 +24,7 @@ $closure = $bar->method(?, new Param);
2424

2525
$closure(1);
2626

27-
$closure->call(
28-
new Foo(), 10);
27+
$closure->call(new Foo(), 10);
2928
?>
3029
--EXPECT--
3130
Bar: 1, Param

0 commit comments

Comments
 (0)