This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace ZendTest \InputFilter ;
11
11
12
- use Zend \Filter ;
13
12
use Zend \InputFilter \ArrayInput ;
14
13
use Zend \InputFilter \Exception \InvalidArgumentException ;
15
14
use Zend \Validator ;
Original file line number Diff line number Diff line change 12
12
use PHPUnit_Framework_MockObject_MockObject as MockObject ;
13
13
use PHPUnit_Framework_TestCase as TestCase ;
14
14
use stdClass ;
15
- use Zend \Filter ;
16
15
use Zend \Filter \FilterChain ;
17
16
use Zend \InputFilter \Input ;
18
17
use Zend \InputFilter \InputInterface ;
@@ -42,7 +41,7 @@ public function testConstructorRequiresAName()
42
41
public function testInputHasEmptyFilterChainByDefault ()
43
42
{
44
43
$ filters = $ this ->input ->getFilterChain ();
45
- $ this ->assertInstanceOf (Filter \ FilterChain::class, $ filters );
44
+ $ this ->assertInstanceOf (FilterChain::class, $ filters );
46
45
$ this ->assertEquals (0 , count ($ filters ));
47
46
}
48
47
@@ -55,7 +54,7 @@ public function testInputHasEmptyValidatorChainByDefault()
55
54
56
55
public function testCanInjectFilterChain ()
57
56
{
58
- $ chain = new Filter \ FilterChain ();
57
+ $ chain = $ this -> createFilterChainMock ();
59
58
$ this ->input ->setFilterChain ($ chain );
60
59
$ this ->assertSame ($ chain , $ this ->input ->getFilterChain ());
61
60
}
You can’t perform that action at this time.
0 commit comments