| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function testGetParams() |
||
| 26 | { |
||
| 27 | $command = 'EXPLAIN %s'; |
||
| 28 | |||
| 29 | $query = (new Select())->addColumns(new Column(new Expr('?', [2]))); |
||
| 30 | |||
| 31 | $query = new Command($command, $query); |
||
| 32 | |||
| 33 | $sql = (string)$query; |
||
| 34 | $params = $query->getParams(); |
||
| 35 | |||
| 36 | $expectedSql = 'EXPLAIN SELECT ?'; |
||
| 37 | $expectedParams = [[2, PDO::PARAM_INT]]; |
||
| 38 | |||
| 39 | $this->assertSame($expectedSql, $sql); |
||
| 40 | $this->assertSame($expectedParams, $params); |
||
| 41 | } |
||
| 53 |