/** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. * * @return void * * @since 1.0 */ protected function setUp() { parent::setUp(); $path = JPATH_ROOT . '/language'; if (is_dir($path)) { Folder::delete($path); } Folder::copy(__DIR__ . '/data/language', $path); $this->object = new Language(); }