Exemple #1
0
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();
    }
}
Exemple #3
0
function run(Tester\TestCase $testCase)
{
    $testCase->run(isset($_SERVER['argv'][1]) ? $_SERVER['argv'][1] : null);
}
Exemple #4
0
function run(Tester\TestCase $testCase)
{
    $testCase->run();
}
Exemple #5
0
 protected function setUp()
 {
     parent::setUp();
     $this->mockCtrl = new Mockyll\MockController();
 }