コード例 #1
0
ファイル: ValidatorTest.php プロジェクト: bgarrels/ebnf
 /**
  * @large
  * @expectedException        de\weltraumschaf\ebnf\visitor\ValidaorException
  * @expectedExceptionMessage You must specify a syntax at very first!
  * @expectedExceptionCode    2
  */
 public function testThrowExcpetionValidateRuleBeforeSyntax()
 {
     $rule = new Rule($this->getMock('de\\weltraumschaf\\ebnf\\ast\\Node'));
     $rule->accept(new Validator());
 }