@@ -20,7 +20,7 @@ public function isNullNonLiteralString(EntityManagerInterface $em): void
20
20
{
21
21
$ field = strtolower ('field ' ); // Non literal-string, e.g. $_POST['field'];
22
22
$ result = $ em ->createQueryBuilder ()->expr ()->isNull ($ field );
23
- assertType (' string ' , $ result );
23
+ assertType (" 'field IS NULL' " , $ result );
24
24
}
25
25
26
26
public function isNotNullLiteralString (EntityManagerInterface $ em ): void
@@ -33,7 +33,7 @@ public function isNotNullNonLiteralString(EntityManagerInterface $em): void
33
33
{
34
34
$ field = strtolower ('field ' ); // Non literal-string, e.g. $_POST['field'];
35
35
$ result = $ em ->createQueryBuilder ()->expr ()->isNotNull ($ field );
36
- assertType (' string ' , $ result );
36
+ assertType (" 'field IS NOT NULL' " , $ result );
37
37
}
38
38
39
39
public function countDistinctLiteralString (EntityManagerInterface $ em ): void
@@ -46,7 +46,7 @@ public function countDistinctNonLiteralString(EntityManagerInterface $em): void
46
46
{
47
47
$ field = strtolower ('B ' ); // Non literal-string, e.g. $_POST['field'];
48
48
$ result = $ em ->createQueryBuilder ()->expr ()->countDistinct ('A ' , $ field , 'C ' );
49
- assertType (' string ' , $ result );
49
+ assertType (" 'COUNT(DISTINCT A, b, C)' " , $ result );
50
50
}
51
51
52
52
public function betweenLiteralString (EntityManagerInterface $ em ): void
@@ -59,7 +59,7 @@ public function betweenNonLiteralString(EntityManagerInterface $em): void
59
59
{
60
60
$ value_1 = strtolower ('B ' ); // Non literal-string, e.g. $_POST['field'];
61
61
$ result = $ em ->createQueryBuilder ()->expr ()->between ('field ' , "' " . $ value_1 . "' " , "'value_2' " );
62
- assertType (' string ' , $ result );
62
+ assertType (" 'field BETWEEN \'b\' AND \'value_2\'' " , $ result );
63
63
}
64
64
65
65
// Might be a problem, as these do not return a 'literal-string'.
0 commit comments