Symfony\Bundle\FrameworkBundle\Tests\Controller\TestController::createNotFoundException PHP Méthode

createNotFoundException() public méthode

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

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