public function testTLD() { $route = new Host("/"); $route->setHost("example.{tld}"); $this->assertTrue($route->matchHost("example.com")); $this->assertTrue($route->matchHost("example.eu")); $this->assertFalse($route->matchHost("foobar.com")); $this->assertFalse($route->matchHost("www.example.eu")); }