protected function assertLocationIsAtLine($line) { /** @var \rtens\scrut\results\FailedTestResult $result */ $result = $this->listener->results[0]; $this->assert->isInstanceOf($result, NotPassedTestResult::class); $expected = FailureSourceLocator::formatFileAndLine(__FILE__, $line); $this->assert($result->getFailure()->getFailureSource(), $expected); }
public function locateEmptyTestFailureSource() { return FailureSourceLocator::formatFileAndLine($this->reflection->getFileName(), $this->reflection->getStartLine()); }
public function locateEmptyTestFailureSource() { $creation = $this->creation->getTrace()[0]; return FailureSourceLocator::formatFileAndLine($creation['file'], $creation['line']); }