| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function testNestedTransactionNotSupported(): void |
||
| 34 | { |
||
| 35 | $db = $this->getConnection(); |
||
| 36 | |||
| 37 | $db->setEnableSavepoint(false); |
||
| 38 | |||
| 39 | $this->assertFalse($db->isSavepointEnabled()); |
||
| 40 | |||
| 41 | $db->transaction( |
||
| 42 | function (ConnectionPDOInterface $db) { |
||
| 43 | $this->assertNotNull($db->getTransaction()); |
||
| 44 | $this->expectException(NotSupportedException::class); |
||
| 45 | |||
| 46 | $db->beginTransaction(); |
||
| 47 | } |
||
| 51 |