File tree Expand file tree Collapse file tree 2 files changed +17
-9
lines changed
tests/Doctrine/Tests/Common/Annotations Expand file tree Collapse file tree 2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -1180,6 +1180,11 @@ public function testCastNegativeFloat()
1180
1180
1181
1181
public function testReservedKeywordsInAnnotations ()
1182
1182
{
1183
+ if (PHP_VERSION_ID >= 70000 ) {
1184
+ $ this ->markTestSkipped ('This test requires PHP 5.6 or lower. ' );
1185
+ }
1186
+ require 'ReservedKeywordsClasses.php ' ;
1187
+
1183
1188
$ parser = $ this ->createTestParser ();
1184
1189
1185
1190
$ result = $ parser ->parse ('@Doctrine\Tests\Common\Annotations\True ' );
@@ -1356,15 +1361,6 @@ class Marker {
1356
1361
public $ value ;
1357
1362
}
1358
1363
1359
- /** @Annotation */
1360
- class True {}
1361
-
1362
- /** @Annotation */
1363
- class False {}
1364
-
1365
- /** @Annotation */
1366
- class Null {}
1367
-
1368
1364
namespace Doctrine \Tests \Common \Annotations \FooBar ;
1369
1365
1370
1366
/** @Annotation */
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace Doctrine \Tests \Common \Annotations ;
4
+
5
+ /** @Annotation */
6
+ class True {}
7
+
8
+ /** @Annotation */
9
+ class False {}
10
+
11
+ /** @Annotation */
12
+ class Null {}
You can’t perform that action at this time.
0 commit comments