コード例 #1
0
ファイル: RouterTest.php プロジェクト: dannykopping/slim
 /**
  * Router should NOT keep reference to a callback that is not callable
  */
 public function testNotFoundHandlerIfNotCallable()
 {
     $router = new \Slim\Router();
     $router->setResourceUri($this->req->getResourceUri());
     $notFoundCallback = 'foo';
     $callback = $router->notFound($notFoundCallback);
     $this->assertNull($callback);
 }