class Illuminate / Testing / Assert
You are viewing an older version of the documentation. For the latest, please visit master documentation.
abstract

Assert

Extends

    PHPUnit\...\Assert

Methods

public static

assertArraySubset ( $subset , $array , bool $checkForIdentity , string $msg ) : void

Asserts that an array has a specified subset.

Parameters

public static

assertFileDoesNotExist ( string $filename , string $message ) : void

Asserts that a file does not exist.

Parameters

  • $filename string
  • $message string
public static

assertDirectoryDoesNotExist ( string $directory , string $message ) : void

Asserts that a directory does not exist.

Parameters

  • $directory string
  • $message string
public static

assertMatchesRegularExpression ( string $pattern , string $string , string $message ) : void

Asserts that a string matches a given regular expression.

Parameters

  • $pattern string
  • $string string
  • $message string