PHPUnit_Framework_Assert::matchesRegularExpression PHP Method

matchesRegularExpression() public static method

Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
public static matchesRegularExpression ( string $pattern ) : PHPUnit_Framework_Constraint_PCREMatch
$pattern string
return PHPUnit_Framework_Constraint_PCREMatch
    public static function matchesRegularExpression($pattern)
    {
        return new PHPUnit_Framework_Constraint_PCREMatch($pattern);
    }

Usage Example

Example #1
0
/**
 * Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.
 *
 * @param  string $pattern
 * @return PHPUnit_Framework_Constraint_PCREMatch
 * @since  Method available since Release 3.0.0
 */
function matchesRegularExpression($pattern)
{
    return PHPUnit_Framework_Assert::matchesRegularExpression($pattern);
}
All Usage Examples Of PHPUnit_Framework_Assert::matchesRegularExpression
PHPUnit_Framework_Assert