function run(Tester\TestCase $testCase) { if (isset($_SERVER['argv'][1])) { $testCase->runTest($_SERVER['argv'][1]); } else { $testCase->run(); } }
function run(Tester\TestCase $testCase) { if (isset($_SERVER['argv'][1])) { $method = $_SERVER['argv'][1]; if ($method !== '--method=nette-tester-list-methods') { $method = preg_replace('~^--method=([a-z_]+)~i', '$1', $method); $testCase->runTest($method); } else { $testCase->run(); } } else { $testCase->run(); } }
function run(Tester\TestCase $testCase) { $testCase->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : null); }
function run(Tester\TestCase $testCase) { $testCase->run(); }
protected function setUp() { parent::setUp(); $this->mockCtrl = new Mockyll\MockController(); }