public function testBuildRegexpLocationWithRegexpSuffix() { $this->section->suffix('~\\.(html|rss)')->get('~(index|home)', 'index', 'index'); self::assertInstanceOf('Nano\\Route\\RegExp', $this->section->getRoutes()->offsetGet('get')->offsetGet(0)); self::assertEquals('/^(index|home)\\.(html|rss)$/i', $this->section->getRoutes()->offsetGet('get')->offsetGet(0)->location()); }