/** * Test pass when there is not a subsequent fallback route */ public function testPassWithoutSubsequentRoute() { \Slim\Environment::mock(array('SCRIPT_NAME' => '/foo', 'PATH_INFO' => '/name/Frank')); $s = new \Slim\Slim(); $s->get('/name/Frank', function () use($s) { echo "Fail"; //<-- Should not be in response body! $s->pass(); }); $s->call(); $this->assertEquals(404, $s->response()->status()); }