You are here

public function Util_RegexTest::testInvalidRegex in Zircon Profile 8

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

@dataProvider invalidRegexpProvider @covers PHPUnit_Util_Regex::pregMatchSafe

File

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

Class

Util_RegexTest
@since Class available since Release 4.2.0

Code

public function testInvalidRegex($pattern, $subject) {
  $this
    ->assertFalse(PHPUnit_Util_Regex::pregMatchSafe($pattern, $subject));
}