public function test() { $runner = KmsCi_Bootstrap::getRunner(); /** @var KmsCi_Environment_PhpHelper $phpHelper */ $phpHelper = $runner->getEnvironment()->getHelper('php'); $this->assertEquals('FOO!', $phpHelper->phpunitGetParam('param1')); $this->assertEquals('BAR', $runner->getConfig('FOO')); $this->assertTrue($runner->isArg('FOO')); $this->assertEquals('BAR', $runner->getArg('FOO')); $integration = KmsCi_Bootstrap::getIntegration($runner); $this->assertEquals($phpHelper->phpunitGetParam('integId'), $integration->getIntegrationId()); $this->assertEquals($phpHelper->phpunitGetParam('integPath'), $integration->getIntegrationPath()); $this->assertEquals($phpHelper->phpunitGetParam('integOutput'), $integration->getOutputPath()); }
public static function getInstanceByIntegrationId($integId) { $runner = KmsCi_Bootstrap::getRunner(); $className = KmsCi_Runner_IntegrationTests::getIntegrationClassById($integId, $runner); $integration = new $className($runner, $integId); return KmsCi_Kmig_IntegrationHelper::getInstance($integration); }
/** * @return KmsCi_CliRunnerAbstract */ protected function _runner() { return KmsCi_Bootstrap::getRunner(); }