use Symfony\Component\EventDispatcher\EventDispatcher;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;
class FirePHPHandlerTest extends TestCase
{ public function testLogHandling() { $handler =
$this->
createHandler();
$logger =
new Logger('my_logger',
[$handler]);
$logger->
warning('This does not look right.'
);
$request =
new Request();
$request->headers->
set('User-Agent', 'Mozilla/5.0 (FirePHP/1.0)'
);
$response =
$this->
dispatchResponseEvent($handler,
$request);
$logger->
error('Something went wrong.'
);