public function testCanComputeCorrectExtension() { $thumb = Illuminage::thumb('bar.png', 100, 100); $this->assertEquals('f3238bdc5038ef68c68528dde8ca91b9.png', $this->cache->getHashOf($thumb)); }
public function testCanCreateThumb() { $this->assertInstanceOf('Illuminage\\Image', Illuminage::thumb('foo.jpg', 200, 300)); }
public function setUp() { $this->cache = new \Illuminage\Cache(Illuminage::getFacadeRoot()); $this->image = Illuminage::image('foo.jpg'); $this->thumb = Illuminage::thumb('foo.jpg', 100, 100); }