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