mirror of
https://github.com/Intervention/image.git
synced 2025-08-28 16:19:50 +02:00
fixed incompatible API issues
This commit is contained in:
@@ -21,12 +21,6 @@ class ExifCommand extends AbstractCommand
|
||||
);
|
||||
}
|
||||
|
||||
if ( ! $image->basePath()) {
|
||||
throw new \Intervention\Image\Exception\RuntimeException(
|
||||
"Reading Exif data is only possible, if the image is instantiated from a filepath."
|
||||
);
|
||||
}
|
||||
|
||||
$key = $this->argument(0)->value();
|
||||
|
||||
// try to read exif data from image file
|
||||
|
@@ -57,14 +57,4 @@ class ExifCommandTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertTrue($command->hasOutput());
|
||||
$this->assertEquals(null, $command->getOutput());
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Intervention\Image\Exception\RuntimeException
|
||||
*/
|
||||
public function testFetchFromNonFileInstance()
|
||||
{
|
||||
$image = new Image;
|
||||
$command = new ExifCommand(array('Artist'));
|
||||
$command->execute($image);
|
||||
}
|
||||
}
|
||||
|
@@ -1497,15 +1497,6 @@ class GdSystemTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(null, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Intervention\Image\Exception\RuntimeException
|
||||
*/
|
||||
public function testExifReadNonFileInstance()
|
||||
{
|
||||
$img = $this->manager()->canvas(300, 200);
|
||||
$data = $img->exif();
|
||||
}
|
||||
|
||||
public function testSaveImage()
|
||||
{
|
||||
$save_as = 'tests/tmp/foo.jpg';
|
||||
|
@@ -1483,15 +1483,6 @@ class ImagickSystemTest extends PHPUnit_Framework_TestCase
|
||||
$this->assertEquals(null, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @expectedException \Intervention\Image\Exception\RuntimeException
|
||||
*/
|
||||
public function testExifReadNonFileInstance()
|
||||
{
|
||||
$img = $this->manager()->canvas(300, 200);
|
||||
$data = $img->exif();
|
||||
}
|
||||
|
||||
public function testSaveImage()
|
||||
{
|
||||
$save_as = 'tests/tmp/foo.jpg';
|
||||
|
Reference in New Issue
Block a user