| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 46 | public function testLoadingMultipleFiles() |
||
| 47 | { |
||
| 48 | $model = new FileLoaderBehaviorMock(['multiple' => true,]); |
||
| 49 | $model->validate(); |
||
| 50 | $this->assertNotEmpty($model->file); |
||
| 51 | $this->assertTrue(is_array($model->file)); |
||
| 52 | $this->assertGreaterThanOrEqual(1, count($model->file)); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
Instead of super-globals, we recommend to explicitly inject the dependencies of your class. This makes your code less dependent on global state and it becomes generally more testable: