trait BrowserKitAssertionsTrait

Ideas borrowed from Laravel Dusk's assertions.

Methods

static void
assertResponseIsSuccessful(string$message ='')

No description

static void
assertResponseStatusCodeSame(int$expectedCode,string$message ='')

No description

static void
assertResponseFormatSame(string|null$expectedFormat,string$message ='')

No description

static void
assertResponseRedirects(string$expectedLocation =null,int$expectedCode =null,string$message ='')

No description

static void
assertResponseHasHeader(string$headerName,string$message ='')

No description

static void
assertResponseNotHasHeader(string$headerName,string$message ='')

No description

static void
assertResponseHeaderSame(string$headerName,string$expectedValue,string$message ='')

No description

static void
assertResponseHeaderNotSame(string$headerName,string$expectedValue,string$message ='')

No description

static void
assertResponseHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertResponseNotHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertResponseCookieValueSame(string$name,string$expectedValue,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertResponseIsUnprocessable(string$message ='')

No description

static void
assertBrowserHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertBrowserNotHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertBrowserCookieValueSame(string$name,string$expectedValue,bool$raw =false,string$path ='/',string$domain =null,string$message ='')

No description

static void
assertRequestAttributeValueSame(string$name,string$expectedValue,string$message ='')

No description

static void
assertRouteSame(string$expectedRoute,array$parameters =[],string$message ='')

No description

static void
assertThatForResponse(Constraint$constraint,string$message ='')

No description

static void
assertThatForClient(Constraint$constraint,string$message ='')

No description

static AbstractBrowser|null
getClient(AbstractBrowser$newClient =null)

No description

Details

staticvoid assertResponseIsSuccessful(string$message ='')

Parameters

string $message

Return Value

void

staticvoid assertResponseStatusCodeSame(int$expectedCode,string$message ='')

Parameters

int $expectedCode
string $message

Return Value

void

staticvoid assertResponseFormatSame(string|null$expectedFormat,string$message ='')

Parameters

string|null $expectedFormat
string $message

Return Value

void

staticvoid assertResponseRedirects(string$expectedLocation =null,int$expectedCode =null,string$message ='')

Parameters

string $expectedLocation
int $expectedCode
string $message

Return Value

void

staticvoid assertResponseHasHeader(string$headerName,string$message ='')

Parameters

string $headerName
string $message

Return Value

void

staticvoid assertResponseNotHasHeader(string$headerName,string$message ='')

Parameters

string $headerName
string $message

Return Value

void

staticvoid assertResponseHeaderSame(string$headerName,string$expectedValue,string$message ='')

Parameters

string $headerName
string $expectedValue
string $message

Return Value

void

staticvoid assertResponseHeaderNotSame(string$headerName,string$expectedValue,string$message ='')

Parameters

string $headerName
string $expectedValue
string $message

Return Value

void

staticvoid assertResponseHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $path
string $domain
string $message

Return Value

void

staticvoid assertResponseNotHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $path
string $domain
string $message

Return Value

void

staticvoid assertResponseCookieValueSame(string$name,string$expectedValue,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $expectedValue
string $path
string $domain
string $message

Return Value

void

staticvoid assertResponseIsUnprocessable(string$message ='')

Parameters

string $message

Return Value

void

staticvoid assertBrowserHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $path
string $domain
string $message

Return Value

void

staticvoid assertBrowserNotHasCookie(string$name,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $path
string $domain
string $message

Return Value

void

staticvoid assertBrowserCookieValueSame(string$name,string$expectedValue,bool$raw =false,string$path ='/',string$domain =null,string$message ='')

Parameters

string $name
string $expectedValue
bool $raw
string $path
string $domain
string $message

Return Value

void

staticvoid assertRequestAttributeValueSame(string$name,string$expectedValue,string$message ='')

Parameters

string $name
string $expectedValue
string $message

Return Value

void

staticvoid assertRouteSame(string$expectedRoute,array$parameters =[],string$message ='')

Parameters

string $expectedRoute
array $parameters
string $message

Return Value

void

staticvoid assertThatForResponse(Constraint$constraint,string$message ='')

Parameters

Constraint $constraint
string $message

Return Value

void

staticvoid assertThatForClient(Constraint$constraint,string$message ='')

Parameters

Constraint $constraint
string $message

Return Value

void

staticprotectedAbstractBrowser|null getClient(AbstractBrowser$newClient =null)

Parameters

AbstractBrowser $newClient

Return Value

AbstractBrowser|null