1 | <?php |
||
11 | class ConfigurationTest extends \PHPUnit_Framework_TestCase |
||
12 | { |
||
13 | /** |
||
14 | * @var Processor |
||
15 | */ |
||
16 | private $processor; |
||
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | public function setUp() |
||
22 | { |
||
23 | $this->processor = new Processor(); |
||
24 | } |
||
25 | |||
26 | private function getConfigs(array $configArray) |
||
27 | { |
||
28 | $configuration = new Configuration(true); |
||
29 | |||
30 | return $this->processor->processConfiguration($configuration, array($configArray)); |
||
31 | } |
||
32 | |||
33 | public function testUnConfiguredConfiguration() |
||
34 | { |
||
35 | $configuration = $this->getConfigs(array()); |
||
36 | $this->assertSame(array(), $configuration); |
||
37 | } |
||
38 | } |
||
39 |