Example #1
0
 /**
  * @covers Phossa\RegEx\RegEx::doubleQuotedString
  */
 public function testDoubleQuotedString()
 {
     // match double quote
     $regex = RegEx::doubleQuotedString();
     $pattern = Utility::toPattern($regex);
     // normal string
     $str1 = 'test "one" "two"';
     $this->assertEquals(2, preg_match_all($pattern, $str1, $m));
 }