Source of file FilterChain.php
Size: 0,973 Bytes - Last Modified: 2015-12-22T09:12:14-05:00
../src/Traits/FilterChain.php
1234567891011121314151617181920212223242526272829303132333435
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
36
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
37
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
38
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
39
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
40
Covered by 6 test(s):
- MvcLite\DispatcherTest::testDispatch with data set "good controller request"
- MvcLite\DispatcherTest::testDispatch with data set "bad controller request"
- MvcLite\RequestTest::testGetContentType with data set "has content type text/plain"
- MvcLite\RequestTest::testGetContentType with data set "has no content type, but has accept headers"
- MvcLite\RequestTest::testGetContentType with data set "has nothing"
- MvcLite\FilterChainTraitsTest::testGetFilterChain
414243 |
namespace MvcLite\Traits;
public function getFilterChain($filters = []) $chain = new \MvcLite\FilterChain; foreach ($filters as $filter) { $class = '\MvcLite\Filter\\' . $filter; $chain->addFilter(new $class);
|