Permalink
Browse files

More tests

  • Loading branch information...
1 parent 1d4f97b commit 68cace91c406cb8114729e273b5ae7ef049b32b0 @thestanislav committed Aug 29, 2013
Showing with 9 additions and 3 deletions.
  1. +9 −3 tests/ZendTest/Form/Annotation/AnnotationBuilderTest.php
@@ -246,12 +246,18 @@ public function testObjectElementAnnotation()
public function testInputFilterInputAnnotation()
{
- $entity = new TestAsset\Annotation\EntityWithInputFilterInput();
+ $entity = new TestAsset\Annotation\EntityWithInputFilterInput();
$builder = new Annotation\AnnotationBuilder();
- $form = $builder->createForm($entity);
+ $form = $builder->createForm($entity);
$inputFilter = $form->getInputFilter();
$this->assertTrue($inputFilter->has('input'));
- $this->assertInstanceOf('ZendTest\Form\TestAsset\Annotation\InputFilterInput', $inputFilter->get('input'));
+ foreach (
+ array('Zend\InputFilter\InputInterface', 'ZendTest\Form\TestAsset\Annotation\InputFilterInput') as
+ $expectedInstance
+ ) {
+ $this->assertInstanceOf($expectedInstance, $inputFilter->get('input'));
+ }
+
}
}

0 comments on commit 68cace9

Please sign in to comment.