You are here

public function Util_RegexTest::testValidRegex in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/tests/Util/RegexTest.php \Util_RegexTest::testValidRegex()

@dataProvider validRegexpProvider @covers PHPUnit_Util_Regex::pregMatchSafe

File

vendor/phpunit/phpunit/tests/Util/RegexTest.php, line 39

Class

Util_RegexTest
@since Class available since Release 4.2.0

Code

public function testValidRegex($pattern, $subject, $return) {
  $this
    ->assertEquals($return, PHPUnit_Util_Regex::pregMatchSafe($pattern, $subject));
}