public static function PHPUnit_Framework_Assert::matchesRegularExpression

Returns a PHPUnit_Framework_Constraint_PCREMatch matcher object.

@since Method available since Release 3.0.0

Parameters

string $pattern:

Return value

PHPUnit_Framework_Constraint_PCREMatch

5 calls to PHPUnit_Framework_Assert::matchesRegularExpression()
Framework_AssertTest::testAssertThatMatchesRegularExpression in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::matchesRegularExpression
Framework_ConstraintTest::testConstraintPCREMatch in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_PCREMatch @covers PHPUnit_Framework_Assert::matchesRegularExpression @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintPCREMatch2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_PCREMatch @covers PHPUnit_Framework_Assert::matchesRegularExpression @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintPCRENotMatch in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_PCREMatch @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::matchesRegularExpression @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintPCRENotMatch2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_PCREMatch @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::matchesRegularExpression @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 2693

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function matchesRegularExpression($pattern) {
  return new PHPUnit_Framework_Constraint_PCREMatch($pattern);
}