Beispiel #1
0
 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);
 }
Beispiel #2
0
 protected function getFailureSourceFromLocator(FailureSourceLocator $locator)
 {
     return $locator->locateSource($this);
 }
Beispiel #3
0
 protected function getFailureSourceFromLocator(FailureSourceLocator $locator)
 {
     return $locator->locateEmptyTestFailureSource();
 }
 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']);
 }