notFound() public method

Not found handler
public notFound ( )
Example #1
0
 /**
  * @test
  */
 public function testNotFound()
 {
     try {
         $this->app->notFound();
         $this->assertTrue(false, 'app->notFound() should throw StopException');
     } catch (StopException $e) {
         $this->assertTrue(true);
         $this->assertEquals(404, $this->app->response->getStatus());
     }
 }