1 | <?php |
||
13 | class ConfigurationLoaderTest extends \PHPUnit_Framework_TestCase |
||
14 | { |
||
15 | /** |
||
16 | * The test subject |
||
17 | * |
||
18 | * @var ConfigurationLoader |
||
19 | */ |
||
20 | protected $configuration; |
||
21 | |||
22 | /** |
||
23 | * {@inheritDoc} |
||
24 | */ |
||
25 | public function setUp() |
||
29 | |||
30 | /** |
||
31 | * Test that the full file path is returned |
||
32 | * |
||
33 | * @covers ::getFilePath |
||
34 | */ |
||
35 | public function testEnsureConfigurationFileExists() |
||
39 | |||
40 | /** |
||
41 | * Test that the YAML configuration file is parsed into an array |
||
42 | * |
||
43 | * @covers ::load |
||
44 | */ |
||
45 | public function testParseYamlConfiguration() |
||
53 | |||
54 | /** |
||
55 | * Test that an exception is thrown if the configuration file does not exist |
||
56 | * |
||
57 | * @covers ::getFilePath |
||
58 | * @expectedException RuntimeException |
||
59 | * @expectedExceptionMessage The configuration YAML file does not exist! |
||
60 | */ |
||
61 | public function testExceptionThrownIfFileDoesNotExist() |
||
76 | } |
||
77 |