Skip to content

Commit 7aacc70

Browse files
committed
Add many missing closing PHP tags to tests
Closes GH-5958
1 parent 05478e9 commit 7aacc70

File tree

1,103 files changed

+1097
-30
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,103 files changed

+1097
-30
lines changed

Zend/tests/022.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class Ext extends Base
1919
$a = new Ext();
2020
$a->someMethod("foo");
2121
$a->someMethod();
22+
?>
2223
--EXPECT--
2324
foo
2425
default

Zend/tests/anon/001.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ declare bare anonymous class
33
--FILE--
44
<?php
55
var_dump(new class{});
6+
?>
67
--EXPECTF--
78
object(class@%s)#%d (0) {
89
}

Zend/tests/anon/002.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $a = new class extends A implements B {
1515
};
1616

1717
var_dump($a instanceof A, $a instanceof B);
18+
?>
1819
--EXPECT--
1920
bool(true)
2021
bool(true)

Zend/tests/anon/003.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ while (@$i++<10) {
1010
}
1111
});
1212
}
13+
?>
1314
--EXPECTF--
1415
object(class@%s)#1 (1) {
1516
["i"]=>

Zend/tests/anon/004.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ $outer = new Outer(array(
2626

2727
/* not null because inheritance */
2828
var_dump($outer->getArrayAccess()[0]);
29+
?>
2930
--EXPECTF--
3031
int(%d)

Zend/tests/anon/005.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@ $proxy = $outer->getArrayAccess();
3232

3333
/* null because no inheritance, so no access to protected member */
3434
var_dump(@$outer->getArrayAccess()[0]);
35+
?>
3536
--EXPECT--
3637
NULL

Zend/tests/anon/006.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ namespace lone {
99
namespace {
1010
var_dump ($hello);
1111
}
12+
?>
1213
--EXPECTF--
1314
object(class@%s)#1 (0) {
1415
}

Zend/tests/anon/007.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace lone {
1717

1818
new Outer();
1919
}
20+
?>
2021
--EXPECTF--
2122
object(class@%s)#2 (0) {
2223
}

Zend/tests/anon/008.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ $anonClass = new class("cats", "dogs") {
1818

1919
var_dump($anonClass::$foo);
2020
var_dump($anonClass::getBar());
21+
?>
2122
--EXPECT--
2223
string(4) "cats"
2324
string(4) "dogs"

Zend/tests/anon/009.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ $anonClass = new class {
1414
};
1515

1616
var_dump($anonClass->someMethod());
17+
?>
1718
--EXPECT--
1819
string(3) "bar"

0 commit comments

Comments
 (0)