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