| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | public function testReader() |
||
| 18 | { |
||
| 19 | $configuration = [ |
||
| 20 | 'foo' => 'bar', |
||
| 21 | 'baz', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | $tmpFile = $this->getTemporaryFilePath(); |
||
| 25 | file_put_contents($tmpFile, Yaml::dump($configuration)); |
||
| 26 | |||
| 27 | $reader = new YamlReader($tmpFile); |
||
| 28 | $this->assertEquals($configuration, $reader->readConfiguration()); |
||
| 29 | } |
||
| 30 | |||
| 41 |