public function testWrongRelativePathParam() { try { $this->assertEquals('/tests', Path::getRelativePath(array())); } catch (\Exception $exception) { $this->assertInstanceOf('\\Vegas\\Utils\\Path\\Exception\\InvalidPathException', $exception); } }
/** * @param int $width * @param int $height * @return mixed|string */ public function getThumbnailUrl($width = 168, $height = 120) { return Path::getRelativePath($this->getThumbnailPath($width, $height)); }