Esempio n. 1
0
 /**
  * @param DefinitionInterface $definition
  * @param \Throwable          $exception
  * @return string
  */
 private function getTestLocationForDefinitionAndException(DefinitionInterface $definition, $exception) : string
 {
     if ($exception instanceof AssertionError) {
         return $definition->getFilePath();
     }
     return $exception->getFile() . ' at ' . $exception->getLine();
 }