Пример #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);
 }
Пример #2
0
 protected function getFailureSourceFromLocator(FailureSourceLocator $locator)
 {
     return $locator->locateSource($this);
 }
Пример #3
0
 protected function getFailureSourceFromLocator(FailureSourceLocator $locator)
 {
     return $locator->locateEmptyTestFailureSource();
 }
Пример #4
0
 public function locateEmptyTestFailureSource()
 {
     return FailureSourceLocator::formatFileAndLine($this->reflection->getFileName(), $this->reflection->getStartLine());
 }
Пример #5
0
 public function locateEmptyTestFailureSource()
 {
     $creation = $this->creation->getTrace()[0];
     return FailureSourceLocator::formatFileAndLine($creation['file'], $creation['line']);
 }