public function testGetData() { $object = new DeploymentConfig([]); $this->assertSame([], $object->getData()); $object = new DeploymentConfig(['Module_One' => '1', 'Module_Two' => false]); $this->assertSame(['Module_One' => 1, 'Module_Two' => 0], $object->getData()); }
/** * @param array $data * @expectedException \Exception * @expectedExceptionMessage Key collision * @dataProvider keyCollisionDataProvider */ public function testKeyCollision(array $data) { $this->reader->expects($this->once())->method('load')->willReturn($data); $object = new DeploymentConfig($this->reader); $object->get(); }