public function test() { $configArr = ['test' => 'testvalue']; $config = new Config($configArr); $test = $config->get('test'); $this->assertEquals('testvalue', $test); $nope = $config->get('nope'); $this->assertEquals(null, $nope); $not = $config->get('nope', 'not'); $this->assertEquals('not', $not); $all = $config->getAll(); $this->assertEquals($all, $configArr); }