예제 #1
0
 public function testGetErrors()
 {
     $mockValidator = $this->getMock('AIV\\ValidatorInterface');
     $mockValidator->expects($this->once())->method('getErrors');
     $manager = new Manager();
     $manager->addValidator('test-form', $mockValidator);
     $manager->setInput($this->getMock('AIV\\InputInterface'));
     $manager->getErrors('test-form');
 }