| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class UpdateTest extends TestCase |
||
| 10 | { |
||
| 11 | public function testConstructorThrowsExceptionOnEmptyAlterations() |
||
| 12 | { |
||
| 13 | $this->expectException(\InvalidArgumentException::class); |
||
| 14 | $this->expectExceptionMessage('EMPTY_ALTERATIONS_OR_CONDITIONS'); |
||
| 15 | |||
| 16 | new Update('test_table', [], ['id' => 1]); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testConstructorThrowsExceptionOnEmptyConditions() |
||
| 20 | { |
||
| 21 | $this->expectException(\InvalidArgumentException::class); |
||
| 22 | $this->expectExceptionMessage('EMPTY_ALTERATIONS_OR_CONDITIONS'); |
||
| 23 | |||
| 24 | new Update('test_table', ['name' => 'test'], []); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testStatement() |
||
| 33 | } |
||
| 34 | } |