You are here

public function Util_RegexTest::validRegexpProvider in Zircon Profile 8

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

File

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

Class

Util_RegexTest
@since Class available since Release 4.2.0

Code

public function validRegexpProvider() {
  return array(
    array(
      '#valid regexp#',
      'valid regexp',
      1,
    ),
    array(
      ';val.*xp;',
      'valid regexp',
      1,
    ),
    array(
      '/val.*xp/i',
      'VALID REGEXP',
      1,
    ),
    array(
      '/a val.*p/',
      'valid regexp',
      0,
    ),
  );
}