/** * @covers JInstaller::getPath */ public function testGetPath() { $this->assertThat($this->object->getPath('path1_getpath', 'default_value'), $this->equalTo('default_value'), 'getPath did not return the default value for an undefined path'); $this->object->setPath('path2_getpath', JPATH_BASE . '/required_path'); $this->assertThat($this->object->getPath('path2_getpath', 'default_value'), $this->equalTo(JPATH_BASE . '/required_path'), 'getPath did not return the previously set value for the path'); }