| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | public function testBuildFrom(mixed $table, string $expectedSql, array $expectedParams = []): void |
||
| 22 | { |
||
| 23 | $db = $this->getConnection(); |
||
| 24 | |||
| 25 | $query = (new Query($db))->from($table); |
||
| 26 | $queryBuilder = $db->getQueryBuilder(); |
||
| 27 | |||
| 28 | [$sql, $params] = $queryBuilder->build($query); |
||
| 29 | |||
| 30 | $this->assertSame($expectedSql, $sql); |
||
| 31 | $this->assertSame($expectedParams, $params); |
||
| 32 | } |
||
| 34 |