예제 #1
0
 public function testParser()
 {
     $parser = $this->getMock('\\PHPVS\\Parser');
     $parser->expects($this->exactly(2))->method('parse');
     RuleSet::attachParser($parser);
     Validator::int()->prepare();
     Sanitizer::int()->prepare();
     RuleSet::detachParser($parser);
 }