abstract class Assert extends Assert (View source)

internal  This class is not meant to be used or overwritten outside the framework itself.
 

Methods

static void
assertArraySubset(ArrayAccess|array $subset, ArrayAccess|array $array, bool $checkForIdentity = false, string $msg = '')

Asserts that an array has a specified subset.

static void
assertFileDoesNotExist(string $filename, string $message = '')

Asserts that a file does not exist.

static void
assertDirectoryDoesNotExist(string $directory, string $message = '')

Asserts that a directory does not exist.

static void
assertMatchesRegularExpression(string $pattern, string $string, string $message = '')

Asserts that a string matches a given regular expression.

Details

static void assertArraySubset(ArrayAccess|array $subset, ArrayAccess|array $array, bool $checkForIdentity = false, string $msg = '')

Asserts that an array has a specified subset.

Parameters

ArrayAccess|array $subset
ArrayAccess|array $array
bool $checkForIdentity
string $msg

Return Value

void

static void assertFileDoesNotExist(string $filename, string $message = '')

Asserts that a file does not exist.

Parameters

string $filename
string $message

Return Value

void

static void assertDirectoryDoesNotExist(string $directory, string $message = '')

Asserts that a directory does not exist.

Parameters

string $directory
string $message

Return Value

void

static void assertMatchesRegularExpression(string $pattern, string $string, string $message = '')

Asserts that a string matches a given regular expression.

Parameters

string $pattern
string $string
string $message

Return Value

void