Ejemplo n.º 1
0
 public function testReturnNullOnExifReadFail()
 {
     $image = Mockery::mock('Intervention\\Image\\Image');
     $command = new ExifCommand(array('Orientation'));
     $result = $command->execute($image);
     $this->assertTrue($result);
     $this->assertTrue($command->hasOutput());
     $this->assertEquals(null, $command->getOutput());
 }
Ejemplo n.º 2
0
 public function testFetchFromPng()
 {
     $image = new Image();
     $image->dirname = __DIR__ . '/images';
     $image->basename = 'star.png';
     $command = new ExifCommand(array('Orientation'));
     $result = $command->execute($image);
     $this->assertTrue($result);
     $this->assertTrue($command->hasOutput());
     $this->assertEquals(null, $command->getOutput());
 }