public function ExceptionListenerTest::testConstruct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/EventListener/ExceptionListenerTest.php \Symfony\Component\HttpKernel\Tests\EventListener\ExceptionListenerTest::testConstruct()
File
- vendor/
symfony/ http-kernel/ Tests/ EventListener/ ExceptionListenerTest.php, line 29
Class
- ExceptionListenerTest
- ExceptionListenerTest.
Namespace
Symfony\Component\HttpKernel\Tests\EventListenerCode
public function testConstruct() {
$logger = new TestLogger();
$l = new ExceptionListener('foo', $logger);
$_logger = new \ReflectionProperty(get_class($l), 'logger');
$_logger
->setAccessible(true);
$_controller = new \ReflectionProperty(get_class($l), 'controller');
$_controller
->setAccessible(true);
$this
->assertSame($logger, $_logger
->getValue($l));
$this
->assertSame('foo', $_controller
->getValue($l));
}