Previous Page
assertProperty()

Solar_Test
assertRegex()

Next Page
assertSame()

assertRegex()

public bool assertRegex ( mixed $actual, mixed $expect )

Asserts that a value matches a regular expression pattern using preg_match().

Parameters

  • (mixed) $actual: The variable to test.
  • (mixed) $expect: The regular expression pattern.

Returns

  • (bool) The assertion result.

Description

Asserts that a value matches a regular expression pattern using preg_match().