]> granicus.if.org Git - php/commitdiff
[skip ci] Consistent match test closing tags
authorIlija Tovilo <ilija.tovilo@me.com>
Sat, 11 Jul 2020 14:43:56 +0000 (16:43 +0200)
committerIlija Tovilo <ilija.tovilo@me.com>
Sat, 11 Jul 2020 14:50:51 +0000 (16:50 +0200)
Zend/tests/match/017.phpt
Zend/tests/match/023.phpt
Zend/tests/match/024.phpt
Zend/tests/match/027.phpt
Zend/tests/match/028.phpt
Zend/tests/match/029.phpt
Zend/tests/match/030.phpt
Zend/tests/match/037.phpt

index 622f7bb165105ec61e9d6c0ff6935ae6e51fa01b..17f07a0b13e9f47b4d71b492f9ffc87b72381485 100644 (file)
@@ -49,6 +49,7 @@ foreach (range(0, 9) as $int) {
     var_dump(test_string($int));
 }
 
+?>
 --EXPECT--
 string(1) "0"
 string(11) "Not matched"
index f82ece2873ae35266101265a6d32db2cfaeb68fe..9b16e16a8962d102faae29ed5a337e4d713d1173 100644 (file)
@@ -16,5 +16,6 @@ echo match (true) {
     true => "true\n",
 };
 
+?>
 --EXPECT--
 true
index 020bb3764b9d8e3f5b1b499319fb113612d65175..e1b8e438d6b561c1de1491e8f50b227d2f38c810 100644 (file)
@@ -15,5 +15,6 @@ echo match (false) {
     false => "false\n",
 };
 
+?>
 --EXPECT--
 false
index 788f5d60393b09c932d9569f40847555b3193953..5b87a2c4ea2bcda6121ed862dd3fd29177eefd57 100644 (file)
@@ -25,6 +25,7 @@ function main() {
 }
 main();
 
+?>
 --EXPECTF--
 usesValue 0
 i is 0
index 8cad03c099eef73b5fc47052db2a6a2695c4abac..bbc826a73863e01964107acdd59282e17796c642 100644 (file)
@@ -29,6 +29,7 @@ try {
     printf("Caught %s\n", $e->getMessage());
 }
 
+?>
 --EXPECT--
 usesValue 42
 usesValue 42
index 7ebcdedc70e24ddc2e33977b7c87107f3e093ff3..e4f9d64ea418918c82c43b63b251f8ebceaf070a 100644 (file)
@@ -14,6 +14,7 @@ echo match ($undefVar) {
 
 echo "unreachable\n";
 
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s029.php:4
 Stack trace:
index 1271d72e422d1b80bba316513f6dd7cec76498de..53588600bd7ce7190184e774584ae3897a6a7abb 100644 (file)
@@ -14,6 +14,7 @@ echo match ($undefVar) {
 
 echo "unreachable\n";
 
+?>
 --EXPECTF--
 Fatal error: Uncaught Exception: Custom error handler: Undefined variable $undefVar in %s030.php:4
 Stack trace:
index e114696f5fb9b48acc76cd83194420c70756bb9e..abd5dcfdc1855cda5bc00ec2b01d0302f571f6ba 100644 (file)
@@ -51,6 +51,7 @@ var_dump(match(3) {
     default => 'bar',
 });
 
+?>
 --EXPECTF--
 string(%d) "UnhandledMatchError: Unhandled match value of type bool in %s037.php:5
 Stack trace: