コード例 #1
0
 /**
  * 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;
     }
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #4
0
 /**
  * Sets the test file. 
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->testFile = PHPUC_TEST_DIR . '/config.xml';
 }