final class Hook

internal  
 

Properties

static array<string, array<string, null|array|Closure>> $cachedHooks

The cached hooks.

Methods

static void
attach(string $type, string $fileOrMethod, Closure|array|null $callback = null)

Define a hook for Pest test file.

static Closure|array|null
unpack(string $type, string $fileOrMethod, Closure|array|null $callback = null)

Unpack the hook.

Details

at line 37
static void attach(string $type, string $fileOrMethod, Closure|array|null $callback = null)

Define a hook for Pest test file.

Parameters

string $type
string $fileOrMethod
Closure|array|null $callback

Return Value

void

at line 45
static Closure|array|null unpack(string $type, string $fileOrMethod, Closure|array|null $callback = null)

Unpack the hook.

Parameters

string $type
string $fileOrMethod
Closure|array|null $callback

Return Value

Closure|array|null