| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public function testLoadConfig() |
||
| 18 | { |
||
| 19 | $arrayConfig = new XmlConfig; |
||
| 20 | $config = $arrayConfig->readConfig( |
||
| 21 | __DIR__ . '/testConfig/config.xml' |
||
| 22 | ); |
||
| 23 | |||
| 24 | $this->assertEquals( |
||
| 25 | [ |
||
| 26 | 'test_event_code' => [ |
||
| 27 | 'object' => 'BlueEvent\Event\BaseEvent', |
||
| 28 | 'listeners' => [ |
||
| 29 | 'ClassOne::method', |
||
| 30 | 'ClassSecond::method', |
||
| 31 | 'someFunction', |
||
| 32 | ] |
||
| 33 | ] |
||
| 34 | ], |
||
| 35 | $config |
||
| 36 | ); |
||
| 39 |