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

Commit

Permalink
[#4319] Fix tests
Browse files Browse the repository at this point in the history
- Intention changed mid-PR, but tests were not updated; demonstrate that Factory
  composes a default filter chain and validator chain by default.
  • Loading branch information
weierophinney committed Apr 26, 2013
1 parent 4409981 commit 9687fc1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/ZendTest/InputFilter/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@

class FactoryTest extends TestCase
{
public function testFactoryDoesNotComposeFilterChainByDefault()
public function testFactoryComposesFilterChainByDefault()
{
$factory = new Factory();
$this->assertNull($factory->getDefaultFilterChain());
$this->assertInstanceOf('Zend\Filter\FilterChain', $factory->getDefaultFilterChain());
}

public function testFactoryDoesNotComposeValidatorChainByDefault()
public function testFactoryComposesValidatorChainByDefault()
{
$factory = new Factory();
$this->assertNull($factory->getDefaultValidatorChain());
$this->assertInstanceOf('Zend\Validator\ValidatorChain', $factory->getDefaultValidatorChain());
}

public function testFactoryAllowsInjectingFilterChain()
Expand Down

0 comments on commit 9687fc1

Please sign in to comment.