| Total Complexity | 6 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class HasFreeSpaceConditionTest extends BuildFileTest |
||
| 8 | { |
||
| 9 | public function setUp(): void |
||
| 10 | { |
||
| 11 | $this->configureProject(PHING_TEST_BASE . '/etc/tasks/system/HasFreeSpaceConditionTest.xml'); |
||
| 12 | } |
||
| 13 | |||
| 14 | public function testPartitionNotSet() |
||
| 15 | { |
||
| 16 | $this->expectBuildExceptionContaining(__FUNCTION__, __FUNCTION__, 'Please set the partition attribute.'); |
||
| 17 | } |
||
| 18 | |||
| 19 | public function testNeededNotSet() |
||
| 20 | { |
||
| 21 | $this->expectBuildExceptionContaining(__FUNCTION__, __FUNCTION__, 'Please set the needed attribute.'); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testInvalidPartition() |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testEnoughSpace() |
||
| 30 | { |
||
| 31 | $this->executeTarget(__FUNCTION__); |
||
| 32 | $this->assertInLogs('HasFreeSpaceConditionTest: Enough space in disk.'); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function testNotEnoughSpace() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |