fixed tests
This commit is contained in:
parent
2e3040cefe
commit
b5f7196bf5
@ -12,6 +12,7 @@
|
|||||||
namespace Symfony\Bundle\WebProfilerBundle\Tests\EventListener;
|
namespace Symfony\Bundle\WebProfilerBundle\Tests\EventListener;
|
||||||
|
|
||||||
use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener;
|
use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener;
|
||||||
|
use Symfony\Component\HttpFoundation\Request;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
|
||||||
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
use Symfony\Component\HttpKernel\HttpKernelInterface;
|
||||||
@ -29,7 +30,7 @@ class WebDebugToolbarListenerTest extends \PHPUnit_Framework_TestCase
|
|||||||
|
|
||||||
$response = new Response($content);
|
$response = new Response($content);
|
||||||
|
|
||||||
$m->invoke($listener, $response);
|
$m->invoke($listener, $response, Request::create('/'));
|
||||||
$this->assertEquals($expected, $response->getContent());
|
$this->assertEquals($expected, $response->getContent());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user