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