Exemplo n.º 1
0
 /**
  * Route should throw exception when setting an invalid callable
  */
 public function testRouteThrowsExecptionWhenSettingInvalidCallable()
 {
     $route = new \Slim\Route('/foo/bar', function () {
     });
     try {
         $route->setCallable('fnDoesNotExist');
         $this->fail('Did not catch InvalidArgumentException when setting invalid callable');
     } catch (\InvalidArgumentException $e) {
     }
 }