Documentation

AfterTestHook extends TestHook

This interface, as well as the associated mechanism for extending PHPUnit, will be removed in PHPUnit 10. There is no alternative available in this version of PHPUnit.

Tags
no-named-arguments

Parameter names are not covered by the backward compatibility promise for PHPUnit

see
https://github.com/sebastianbergmann/phpunit/issues/4676

Table of Contents

executeAfterTest()  : void
This hook will fire after any test, regardless of the result.

Methods

executeAfterTest()

This hook will fire after any test, regardless of the result.

public executeAfterTest(string $test, float $time) : void

For more fine grained control, have a look at the other hooks that extend PHPUnit\Runner\Hook.

Parameters
$test : string
$time : float
Return values
void

Search results