class Classification

Methods

of(string|array $state, array $attachments = [])

Create a new pending classification for the given state.

fake(Closure|array $responses = [])

Fake classification operations.

static void
assertClassified(Closure $callback)

Assert that a classification was performed matching a given truth test.

static void
assertNotClassified(Closure $callback)

Assert that a classification was not performed matching a given truth test.

static void
assertNothingClassified()

Assert that no classifications were performed.

static bool
isFaked()

Determine if classification is faked.

Details

at line 25
static PendingClassification of(string|array $state, array $attachments = [])

Create a new pending classification for the given state.

Parameters

string|array $state
array $attachments

Return Value

PendingClassification

Exceptions

InvalidArgumentException

at line 35
static FakeClassificationGateway fake(Closure|array $responses = [])

Fake classification operations.

The fake gateway is shared across requests in the worker.

Parameters

Closure|array $responses

Return Value

FakeClassificationGateway

at line 44
static void assertClassified(Closure $callback)

Assert that a classification was performed matching a given truth test.

Parameters

Closure $callback

Return Value

void

at line 52
static void assertNotClassified(Closure $callback)

Assert that a classification was not performed matching a given truth test.

Parameters

Closure $callback

Return Value

void

at line 60
static void assertNothingClassified()

Assert that no classifications were performed.

Return Value

void

at line 68
static bool isFaked()

Determine if classification is faked.

Return Value

bool