public function testDispatchScript() { $route = new Route(); $request = new HttpRequest(); $request->uri(self::scriptUrlFixture); $this->assertTrue($route->test($request)); $this->assertFalse(self::$sitemapScriptCalledFlag); $route->dispatch(); $this->assertTrue(self::$sitemapScriptCalledFlag); }