diff --git a/test/FactoryTest.php b/test/FactoryTest.php index f2e75206..009a20de 100644 --- a/test/FactoryTest.php +++ b/test/FactoryTest.php @@ -616,13 +616,16 @@ public function testCanCreateInputFilterWithNullInputs() */ public function testCanCreateInputFromProvider() { + /* @group $provider \Zend\InputFilter\InputProviderInterface|\PHPUnit_Framework_MockObject_MockObject */ $provider = $this->getMock('Zend\InputFilter\InputProviderInterface', array('getInputSpecification')); - $provider->expects($this->any())->method('getInputSpecification')->will($this->returnValue(array( - 'name' => 'foo', - ))); + + $provider + ->expects($this->any()) + ->method('getInputSpecification') + ->will($this->returnValue(array('name' => 'foo'))); $factory = new Factory(); - $input = $factory->createInput($provider); + $input = $factory->createInput($provider); $this->assertInstanceOf('Zend\InputFilter\InputInterface', $input); } @@ -632,22 +635,26 @@ public function testCanCreateInputFromProvider() */ public function testCanCreateInputFilterFromProvider() { + /* @group $provider \Zend\InputFilter\InputFilterProviderInterface|\PHPUnit_Framework_MockObject_MockObject */ $provider = $this->getMock( 'Zend\InputFilter\InputFilterProviderInterface', array('getInputFilterSpecification') ); - $provider->expects($this->any())->method('getInputFilterSpecification')->will($this->returnValue(array( - 'foo' => array( - 'name' => 'foo', - 'required' => false, - ), - 'baz' => array( - 'name' => 'baz', - 'required' => true, - ), - ))); + $provider + ->expects($this->any()) + ->method('getInputFilterSpecification') + ->will($this->returnValue(array( + 'foo' => array( + 'name' => 'foo', + 'required' => false, + ), + 'baz' => array( + 'name' => 'baz', + 'required' => true, + ), + ))); - $factory = new Factory(); + $factory = new Factory(); $inputFilter = $factory->createInputFilter($provider); $this->assertInstanceOf('Zend\InputFilter\InputFilterInterface', $inputFilter);