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());
 }
Example #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());
 }
Example #3
0
 /**
  * @expectedException \Intervention\Image\Exception\RuntimeException
  */
 public function testFetchFromNonFileInstance()
 {
     $image = new Image();
     $command = new ExifCommand(array('Artist'));
     $command->execute($image);
 }