| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | class PhpLoaderTest extends BaseTest |
||
| 15 | { |
||
| 16 | public function testGetConfig(): void |
||
| 17 | { |
||
| 18 | $cf = $this->getFactory(); |
||
| 19 | |||
| 20 | $this->assertEquals( |
||
| 21 | [ |
||
| 22 | 'id' => 'hello world', |
||
| 23 | 'autowire' => new \Spiral\Core\Container\Autowire('something') |
||
| 24 | ], |
||
| 25 | $cf->getConfig('test') |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @expectedException \Spiral\Config\Exception\LoaderException |
||
| 31 | */ |
||
| 32 | public function testEmpty(): void |
||
| 33 | { |
||
| 34 | $cf = $this->getFactory(); |
||
| 35 | $cf->getConfig('empty'); |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @expectedException \Spiral\Config\Exception\LoaderException |
||
| 40 | */ |
||
| 41 | public function testBroken(): void |
||
| 45 | } |
||
| 46 | |||
| 47 | public function testScope(): void |
||
| 64 |