/** * 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); }
protected function setUp() { $bav = new BAV(); $this->validation = new ContextValidation($bav->getDataBackend()); }