Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function testConvertToPHPValueSQLForNewObjectExpression() : void |
||
23 | { |
||
24 | $dql = 'SELECT NEW ' . GH8061Class::class . '(e.field) FROM ' . GH8061Entity::class . ' e'; |
||
25 | $entityManager = $this->_getTestEntityManager(); |
||
26 | $query = $entityManager->createQuery($dql); |
||
27 | |||
28 | self::assertRegExp('/SELECT DatabaseFunction\(\w+\.field\) AS /', $query->getSQL()); |
||
|
|||
29 | } |
||
77 |