/** * @covers Sitemap::index */ public function testIndex() { $this->object->index(); // Check if rendered template contains site map $this->expectOutputRegex('/id="sitemap"/'); }