Exemplo n.º 1
0
 public function testCanComputeCorrectExtension()
 {
     $thumb = Illuminage::thumb('bar.png', 100, 100);
     $this->assertEquals('f3238bdc5038ef68c68528dde8ca91b9.png', $this->cache->getHashOf($thumb));
 }
Exemplo n.º 2
0
 public function testCanCreateThumb()
 {
     $this->assertInstanceOf('Illuminage\\Image', Illuminage::thumb('foo.jpg', 200, 300));
 }
Exemplo 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);
 }