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