| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function testCommitFalse() : void |
||
| 34 | { |
||
| 35 | $this->connection->query('SET SESSION wait_timeout=1'); |
||
| 36 | |||
| 37 | $this->assertTrue($this->connection->beginTransaction()); |
||
| 38 | |||
| 39 | sleep(2); // during the sleep mysql will close the connection |
||
| 40 | |||
| 41 | $this->assertFalse($this->connection->commit()); |
||
| 42 | } |
||
| 44 |