Symfony\Bundle\FrameworkBundle\Tests\Controller\TestController::createNotFoundException PHP Method

createNotFoundException() public method

public createNotFoundException ( $message = 'Not Found', Exception $previous = null )
$previous Exception
    public function createNotFoundException($message = 'Not Found', \Exception $previous = null)
    {
        return parent::createNotFoundException($message, $previous);
    }

Usage Example

Exemplo n.º 1
0
 public function testCreateNotFoundException()
 {
     $controller = new TestController();
     $this->assertInstanceOf('Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException', $controller->createNotFoundException());
 }