| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function testComplex() |
||
| 30 | { |
||
| 31 | $select = new Select(); |
||
| 32 | $select->addColumn(new Expr('1')); |
||
| 33 | |||
| 34 | $sql = (string)$this->getSut('foo') |
||
| 35 | ->addModifier(Insert::IGNORE) |
||
| 36 | ->setSelect($select); |
||
| 37 | |||
| 38 | $parts = []; |
||
| 39 | $parts[] = 'INSERT IGNORE INTO foo'; |
||
| 40 | $parts[] = 'SELECT 1'; |
||
| 41 | |||
| 42 | $expectedSql = implode(PHP_EOL, $parts); |
||
| 43 | |||
| 44 | $this->assertSame($expectedSql, $sql); |
||
| 45 | } |
||
| 57 |