/** * afterEach * * Adds a callback to current spec, that is called after each spec test is run. * * @param callable $afterEachCallback * * @return void */ public static function afterEach(callable $afterEachCallback) { if (self::$currentSpecInstance instanceof Spec) { self::$currentSpecInstance->afterEach($afterEachCallback); } }