예제 #1
0
 /**
  * @expectedException REBuilder\Exception\Generic
  */
 public function testInvalidCharException()
 {
     $char = new REBuilder\Pattern\Char("");
     $char->render();
 }
예제 #2
0
 /**
  * @expectedException REBuilder\Exception\InvalidRepetition
  */
 public function testInvalidRepetitionWithFunction()
 {
     $char = new REBuilder\Pattern\Char();
     $char->setRepetition("a");
 }