| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testLogExecuteQuery() : void |
||
| 13 | { |
||
| 14 | $sql = $this->connection->getDatabasePlatform()->getDummySelectSQL(); |
||
| 15 | |||
| 16 | $logMock = $this->createMock(SQLLogger::class); |
||
| 17 | $logMock->expects($this->at(0)) |
||
| 18 | ->method('startQuery') |
||
| 19 | ->with($this->equalTo($sql), $this->equalTo([]), $this->equalTo([])); |
||
| 20 | $logMock->expects($this->at(1)) |
||
| 21 | ->method('stopQuery'); |
||
| 22 | $this->connection->getConfiguration()->setSQLLogger($logMock); |
||
| 23 | $this->connection->executeQuery($sql, []); |
||
| 24 | } |
||
| 42 |