Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#7010 - minor CS fixes (alignment, IDE hints)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Dec 16, 2014
1 parent 8407f04 commit 5ab8f19
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions test/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit 5ab8f19

Please sign in to comment.