/** * @expectedException Gajus\Director\Exception\InvalidArgumentException * @expectedExceptionMessage Path is not relative to the route. */ public function testGetURLUsingAbsoluteCustomPath() { $locator = new \Gajus\Director\Locator('http://gajus.com/'); $locator->url('/foo'); }