setBaseUrl('http://test.com/'); $this->assertEquals('http://test.com', $profile->getBaseUrl()); $profile->setBaseUrl('http://test.com'); $this->assertEquals('http://test.com', $profile->getBaseUrl()); $profile->setBaseUrl('https://test.com/'); $this->assertEquals('https://test.com', $profile->getBaseUrl()); $profile->setBaseUrl('https://test.com'); $this->assertEquals('https://test.com', $profile->getBaseUrl()); } public function testImportExport() { $profile = new selfServiceProfile(); $moduleSettings = array('x1' => 'y1', 'x2' => 'y2'); $profile->moduleSettings = $moduleSettings; $profile->baseColor = 'green'; $profile->language = 'de_DE@UTF8'; $profile->pageHeader = 'header'; $export = $profile->export(); $importedProfile = selfServiceProfile::import($export); $this->assertEquals($moduleSettings, $importedProfile->moduleSettings); $this->assertEquals('green', $importedProfile->baseColor); $this->assertEquals('de_DE@UTF8', $importedProfile->language); $this->assertEquals('header', $importedProfile->pageHeader); } } ?>