public function testNonExistentValuesReturnsNull() { $defaults = array('a' => 'value', 'b' => array(1, 2, 3), 'c' => (object) array('d' => 'e', 'f' => 'g')); $obj = new Configula\Config(NULL, $defaults); $this->assertEquals(NULL, $obj->non_existent); $this->assertEquals(NULL, $obj->getItem('doesnotexist')); }