Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function testLogging() |
||
12 | { |
||
13 | $logger = $this->createMock(LoggerInterface::class); |
||
14 | $logger->expects($this->once()) |
||
15 | ->method('debug') |
||
16 | ->with('SELECT name FROM users WHERE id = ?', [ |
||
17 | 'params' => [1], |
||
18 | 'types' => [ParameterType::INTEGER], |
||
19 | ]); |
||
20 | |||
21 | $adapter = new PsrAdapter($logger); |
||
22 | $adapter->startQuery('SELECT name FROM users WHERE id = ?', [1], [ParameterType::INTEGER]); |
||
23 | } |
||
25 |