Example #1
0
 /**
  * Tests build()
  * 
  * @param string $type Validation type
  * @see ValidatorFactory::build()
  * @dataProvider provideTestBuild
  */
 public function testBuild($type)
 {
     $bav = new BAV();
     $bank = new Bank($bav->getDataBackend(), null, $type);
     $validator = $this->factory->build($bank);
     $this->assertInstanceOf("\\malkusch\\bav\\Validator{$type}", $validator);
 }
Example #2
0
 protected function setUp()
 {
     $bav = new BAV();
     $this->validation = new ContextValidation($bav->getDataBackend());
 }