File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ public function testRule(): void
29
29
'DQL: [Semantical Error] line 0, col 14 near \'Foo e \': Error: Class \'Foo \' is not defined. ' ,
30
30
44 ,
31
31
],
32
+ [
33
+ 'DQL: [Semantical Error] line 0, col 17 near \'Foo \': Error: Class \'Foo \' is not defined. ' ,
34
+ 51 ,
35
+ ],
36
+ [
37
+ 'DQL: [Semantical Error] line 0, col 17 near \'Foo \': Error: Class \'Foo \' is not defined. ' ,
38
+ 59 ,
39
+ ],
32
40
]);
33
41
}
34
42
Original file line number Diff line number Diff line change @@ -46,4 +46,20 @@ public function unknownEntity(): void
46
46
)->getResult ();
47
47
}
48
48
49
+ public function heredoc (): void
50
+ {
51
+ $ this ->entityManager ->createQuery (<<<DQL
52
+ SELECT e FROM Foo
53
+ DQL
54
+ )->getResult ();
55
+ }
56
+
57
+ public function nowdoc (): void
58
+ {
59
+ $ this ->entityManager ->createQuery (<<<'DQL'
60
+ SELECT e FROM Foo
61
+ DQL
62
+ )->getResult ();
63
+ }
64
+
49
65
}
You can’t perform that action at this time.
0 commit comments