public function testExecuteInvokesTestersExecuteMethod() { $input = $this->getMock('Symfony\\Component\\Console\\Input\\InputInterface'); $output = $this->getMock('Symfony\\Component\\Console\\Output\\OutputInterface'); $tester = $this->getMock('ParaTest\\Console\\Testers\\Tester'); $tester->expects($this->once())->method('execute')->with($this->equalTo($input), $this->equalTo($output)); $command = new ParaTestCommand($tester); $command->execute($input, $output); }
protected function setUp() { $this->skipIfCodeCoverageNotEnabled(); $this->options = array('path' => FIXTURES . DS . 'failing-tests', 'phpunit' => PHPUNIT, 'coverage-php' => sys_get_temp_dir() . DS . 'testcoverage.php', 'bootstrap' => BOOTSTRAP); if (ParaTestCommand::isWhitelistSupported()) { $this->options['whitelist'] = FIXTURES . DS . 'failing-tests'; } $this->runner = new Runner($this->options); }
public function setUp() { try { $coverage = new \PHP_CodeCoverage(); } catch (\Exception $e) { $this->markTestSkipped($e->getMessage()); } $this->options = array('path' => FIXTURES . DS . 'failing-tests', 'phpunit' => PHPUNIT, 'coverage-php' => sys_get_temp_dir() . DS . 'testcoverage.php', 'bootstrap' => BOOTSTRAP); if (ParaTestCommand::isWhitelistSupported()) { $this->options['whitelist'] = FIXTURES . DS . 'failing-tests'; } $this->runner = new Runner($this->options); }