public function testSetDefaultDomain() { $domain = 'http://test.test.test/'; $config = new ConfigConfig(); $defaultDomain = new DefaultDomain($domain, $config, new Parser('/')); $defaultDomain->process(); $this->assertEquals($config->getDefaultDomain()->toString(), $domain); }
public function testSetDefaultDomain() { $domain = new Uri('http://www.phphatesme.com'); $config = new ConfigConfig(); $config->setDefaultDomain($domain); $defaultDomain = $config->getDefaultDomain(); $this->assertEquals($domain, $defaultDomain); }
/** * Initializes the test run. */ private function initTestRun() { $this->eventDispatcher->simpleNotify('LiveTest.Runner.InitTestRun'); try { $properties = Properties::createByYamlFile($this->getArgument('testsuite'), $this->config->getDefaultDomain(), $this->eventDispatcher); } catch (\Zend\Config\Exception\InvalidArgumentException $e) { throw new ConfigurationException('The given testsuite configuration file ("' . $this->getArgument('testsuite') . '") was not found.', null, $e); } catch (\InvalidArgumentException $e) { throw new ConfigurationException('Error parsing testsuite configuration: ' . $e->getMessage(), null, $e); } if (!$properties->hasSessions()) { throw new ConfigurationException('No sessions were defined in the testsuite configuration'); } $clients = $this->getClients($properties->getSessions()); $this->testRun = new Run($properties, $clients, $this->eventDispatcher); }