public createAccessDeniedException ( $message = 'Access Denied.', Exception $previous = null ) | ||
$previous | Exception |
public function testCreateAccessDeniedException() { $controller = new TestController(); $this->assertInstanceOf('Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException', $controller->createAccessDeniedException()); }