/** * @param string $description * @param callable $definition */ public function __construct($description, callable $definition = null) { if ($definition === null) { $this->pending = true; $definition = function () { //noop }; } parent::__construct($description, $definition); }
/** * Track a test path. * * @param AbstractTest $test * @return void */ protected function trackTest(AbstractTest $test, $exception = null) { $file = $test->getFile(); if (!isset($this->suites[$file])) { $this->suites[$file] = []; } $this->suites[$file][] = ['test' => $test, 'exception' => $exception]; }