From 5ab8f198b3c204fe64e0f102442a835bc7f34d89 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Tue, 16 Dec 2014 12:59:53 +0100 Subject: [PATCH] zendframework/zf2#7010 - minor CS fixes (alignment, IDE hints) --- test/FactoryTest.php | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) 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);