| Total Complexity | 5 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class ArtifactsTest extends TestCase |
||
| 15 | { |
||
| 16 | public function testCreation() |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | */ |
||
| 28 | public function testCreationWithEmptyArray() |
||
| 29 | { |
||
| 30 | $this->expectException('Ktomk\Pipelines\File\ParseException'); |
||
| 31 | $this->expectExceptionMessage('\'artifacts\' requires a list'); |
||
| 32 | |||
| 33 | new Artifacts(array()); |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | */ |
||
| 38 | public function testCreationWithIncompleteList() |
||
| 39 | { |
||
| 40 | $this->expectException('Ktomk\Pipelines\File\ParseException'); |
||
| 41 | $this->expectExceptionMessage('\'artifacts\' requires a list of strings, #0 is not a string'); |
||
| 42 | |||
| 43 | new Artifacts(array(null)); |
||
| 44 | } |
||
| 45 | |||
| 46 | public function testGetPatterns() |
||
| 52 | } |
||
| 53 | |||
| 54 | public function testCount() |
||
| 59 | } |
||
| 60 | } |
||
| 61 |