Пример #1
0
 /**
  * @covers \spriebsch\PHPca\Pattern\Pattern::zeroOrMore
  */
 public function testZeroOrMoreMapsToRegExWithoutTrailingBlank()
 {
     $pattern = new Pattern();
     $pattern->zeroOrMore(new Token(T_OPEN_TAG));
     $this->assertEquals('(\\bT_OPEN_TAG\\b)*', $pattern->getRegEx());
 }