/** * Detects the operation system. * * @return void */ protected function setUp() { parent::setUp(); if (stripos(PHP_OS, 'win') === false || stristr(PHP_OS, 'darwin')) { $this->os = phpucFileUtil::OS_UNIX; } else { $this->os = phpucFileUtil::OS_WINDOWS; } }
/** * Creates a prepared {@link phpucConsoleArgs} instance and the required * /projects directory. * * @return void */ protected function setUp() { parent::setUp(); chdir(dirname(__FILE__)); $this->prepareArgv(array('example', '--project-name', 'phpUnderControl', PHPUC_TEST_DIR)); $input = new phpucConsoleInput(); $input->parse(); $this->args = $input->args; $this->createTestDirectories(array('/projects', '/apache-ant-1.7.0')); $this->createTestFile('/config.xml', '<cruisecontrol />'); }
/** * Creates a prepared {@link phpucConsoleArgs} instance and the required * /projects directory. * * @return void */ protected function setUp() { parent::setUp(); chdir(dirname(__FILE__)); $this->setUpVfsStream(); }
/** * Sets the test file. * * @return void */ protected function setUp() { parent::setUp(); $this->testFile = PHPUC_TEST_DIR . '/config.xml'; }