Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function testLogPrepareExecute() : void |
||
27 | { |
||
28 | $sql = $this->connection->getDatabasePlatform()->getDummySelectSQL(); |
||
29 | |||
30 | $logMock = $this->createMock(SQLLogger::class); |
||
31 | $logMock->expects($this->once()) |
||
32 | ->method('startQuery') |
||
33 | ->with($this->equalTo($sql), $this->equalTo([])); |
||
34 | $logMock->expects($this->at(1)) |
||
35 | ->method('stopQuery'); |
||
36 | $this->connection->getConfiguration()->setSQLLogger($logMock); |
||
37 | |||
38 | $stmt = $this->connection->prepare($sql); |
||
39 | $stmt->execute(); |
||
40 | } |
||
42 |