@param \PHPUnit_Framework_Test $test
@param \Exception              $e
@param float                   $time

@since Method available since Release 2.17.0
195498
protected function writeFailure(\PHPUnit_Framework_Test $test, \Exception $e, $time)
    {
        $this->writeFailureOrError($test, $e, $time, 'failure');
    }
257649
public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
    {
        if (!$this->colors) {
            parent::addFailure($test, $e, $time);

            return;
        }

        $this->writeProgress(Coloring::red('F'));
        $this->lastTestFailed = true;
    }
844262
protected function handleException($request, Exception $e)
    {
        $handler = $this->app->make(ExceptionHandler::class);

        return $handler->render($request, $e);
    }
464597
public function deleteContent( core_kernel_classes_Resource $test)
    {
        /** @var \core_kernel_classes_Literal $directoryId */
        $directoryId = $test->getOnePropertyValue($this->getProperty(TestService::PROPERTY_TEST_CONTENT));
        if(is_null($directoryId)){
            throw new \common_exception_FileSystemError(__('Unknown test directory'));
        }

        $directory = \tao_models_classes_service_FileStorage::singleton()->getDirectoryById($directoryId->literal);
        $directory->deleteSelf();

		$test->removePropertyValues($this->getProperty(TestService::PROPERTY_TEST_CONTENT));
    }
749347
public static function log(Exception $e)
    {
        Base::getLog()->error($e->getMessage(), [
            'code' => $e->getCode(),
            'file' => $e->getFile(),
            'line' => $e->getLine(),
        ]);
    }
315151
public function printFeedback(ExecutableTest $test)
    {
        try {
            $reader = new Reader($test->getTempFile());
        } catch (\InvalidArgumentException $e) {
            throw new \RuntimeException(sprintf(
                "%s\n" .
                "The process: %s\n" .
                "This means a PHPUnit process was unable to run \"%s\"\n",
                $e->getMessage(),
                $test->getLastCommand(),
                $test->getPath()
            ));
        }
        $this->results->addReader($reader);
        $this->processReaderFeedback($reader, $test->getTestCount());
        $this->printTestWarnings($test);
    }
575312
public static function ini($test = null)
    {
        self::getSupported();

        self::$lang = self::detect($test);

        exception_if(!in_array(self::$lang, self::$supported), LanguageNotSupportedException::class, self::$lang);

        self::load();
    }
774613
public function report(Exception $e)
    {
        if ($this->shouldReport($e)) {
            $this->event->fire(new ExceptionEvent($e));
        }
        parent::report($e);
    }
778795
public function addWarning(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_Warning $e, $time)
    {
        $this->writeWarning($test, $e, $time);
    }
652184
public function report(Exception $e)
    {
        try {
            $logger = Zilf::$container->getShare('log');
        } catch (Exception $ex) {
            throw $e;
        }

        $logger->error($e->getMessage(), ['exception' => $e]);
    }
1183347
public function render($request, Exception $e)
    {
        if ($this->isServiceException($e)) {
            $e->setRequest($request);
        } elseif ($e instanceof ValidationException) {
            $e = $this->convertValidationExceptionToEntityException($e);
        } else {
            $e = $this->convertExceptionToServiceException($e);
        }

        return $this->prepareJsonResponse($e);
    }
459828
public function isException($test, $value) {
		$exceptions = $this->getTestExceptions($test);
		return (!empty($exceptions) && in_array($value, $exceptions));
	}
700373
public function retry_incremental(\Exception $e = null, $output = null, $exp = 2, $unit = 'minutes') {
		if (self::$max_attempts > 0 AND $this->retry_attempt >= self::$max_attempts) {
			echo $output;
			throw $e;
		}

		$this->retry_attempt++;
		$this->schedule(pow($this->retry_attempt, $exp) . ' ' . $unit);
	}
967422
public void set(final Exception e) {
		if (this.value.compareAndSet(null, e)) {
			this.listeners.clear();
			this.cdl.countDown();
		}
	}
200885
public function addFailure(\PHPUnit_Framework_Test $test, \PHPUnit_Framework_AssertionFailedError $e, $time)
    {
        $message = 'failed';
        $this->write(
            $this->colors ? Coloring::red($message)
                          : $message
        );

        parent::addFailure($test, $e, $time);
    }
389405
public function addFailure(Test $test, AssertionFailedError $e, float $time): void
    {
        $this->doAddFault($test, $e, $time, 'failure');
        $this->testSuiteFailures[$this->testSuiteLevel]++;
    }
124936
public function render($request, Exception $e)
    {
        //        if ($request->isXmlHttpRequest())
//            return $this->renderXmlHttpException($e);

        if (config('app.debug')) {
            if ($request->isXmlHttpRequest()) {
                return $this->renderDebugXmlHttpException($e);
            }

            return $this->renderExceptionWithWhoops($e);
        }

        return parent::render($request, $e);
    }