record() public method

Record a test run
public record ( Run $run, PHPUnit_Framework_TestCase $test, float $time, integer $status ) : void
$run PHPUnit\Runner\CleverAndSmart\Run
$test PHPUnit_Framework_TestCase
$time float
$status integer
return void
コード例 #1
0
 public function onCancel()
 {
     if (!$this->currentTest) {
         return;
     }
     $this->storage->record($this->run, $this->currentTest, 0, StorageInterface::STATUS_CANCEL);
     exit(1);
 }