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