public function getPath() { $pattern = parent::getPath(); if ($this->getOption('add_trailing_slash') && '/' !== $pattern[strlen($pattern) - 1]) { $pattern .= '/'; } return $pattern; }
/** * @expectedException \LogicException */ public function testPrefixNonpersisted() { $route = new Route(); $route->getPath(); }