1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

Merge pull request #488 from localheinz/fix/case

Fix: Case-insensitive method calls and class names
This commit is contained in:
Oliver Vogel
2016-01-02 19:05:34 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ class Driver extends \Intervention\Image\AbstractDriver
$core = new \Imagick;
$core->newImage($width, $height, $background->getPixel(), 'png');
$core->setType(\Imagick::IMGTYPE_UNDEFINED);
$core->setImagetype(\Imagick::IMGTYPE_UNDEFINED);
$core->setImageType(\Imagick::IMGTYPE_UNDEFINED);
$core->setColorspace(\Imagick::COLORSPACE_UNDEFINED);
// build image

View File

@@ -14,7 +14,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
$source = $this->getTestDecoder(new \Imagick);
$this->assertTrue($source->isImagick());
$source = $this->getTestDecoder(new StdClass);
$source = $this->getTestDecoder(new stdClass);
$this->assertFalse($source->isImagick());
$source = $this->getTestDecoder(null);
@@ -45,7 +45,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
$source = $this->getTestDecoder(array());
$this->assertFalse($source->isFilepath());
$source = $this->getTestDecoder(new StdClass);
$source = $this->getTestDecoder(new stdClass);
$this->assertFalse($source->isFilepath());
}
@@ -84,7 +84,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
$source = $this->getTestDecoder(array(1,2,3));
$this->assertFalse($source->isBinary());
$source = $this->getTestDecoder(new StdClass);
$source = $this->getTestDecoder(new stdClass);
$this->assertFalse($source->isBinary());
}