mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Merge pull request #488 from localheinz/fix/case
Fix: Case-insensitive method calls and class names
This commit is contained in:
@@ -40,7 +40,7 @@ class Driver extends \Intervention\Image\AbstractDriver
|
|||||||
$core = new \Imagick;
|
$core = new \Imagick;
|
||||||
$core->newImage($width, $height, $background->getPixel(), 'png');
|
$core->newImage($width, $height, $background->getPixel(), 'png');
|
||||||
$core->setType(\Imagick::IMGTYPE_UNDEFINED);
|
$core->setType(\Imagick::IMGTYPE_UNDEFINED);
|
||||||
$core->setImagetype(\Imagick::IMGTYPE_UNDEFINED);
|
$core->setImageType(\Imagick::IMGTYPE_UNDEFINED);
|
||||||
$core->setColorspace(\Imagick::COLORSPACE_UNDEFINED);
|
$core->setColorspace(\Imagick::COLORSPACE_UNDEFINED);
|
||||||
|
|
||||||
// build image
|
// build image
|
||||||
|
@@ -14,7 +14,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
|
|||||||
$source = $this->getTestDecoder(new \Imagick);
|
$source = $this->getTestDecoder(new \Imagick);
|
||||||
$this->assertTrue($source->isImagick());
|
$this->assertTrue($source->isImagick());
|
||||||
|
|
||||||
$source = $this->getTestDecoder(new StdClass);
|
$source = $this->getTestDecoder(new stdClass);
|
||||||
$this->assertFalse($source->isImagick());
|
$this->assertFalse($source->isImagick());
|
||||||
|
|
||||||
$source = $this->getTestDecoder(null);
|
$source = $this->getTestDecoder(null);
|
||||||
@@ -45,7 +45,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
|
|||||||
$source = $this->getTestDecoder(array());
|
$source = $this->getTestDecoder(array());
|
||||||
$this->assertFalse($source->isFilepath());
|
$this->assertFalse($source->isFilepath());
|
||||||
|
|
||||||
$source = $this->getTestDecoder(new StdClass);
|
$source = $this->getTestDecoder(new stdClass);
|
||||||
$this->assertFalse($source->isFilepath());
|
$this->assertFalse($source->isFilepath());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -84,7 +84,7 @@ class AbstractDecoderTest extends PHPUnit_Framework_TestCase
|
|||||||
$source = $this->getTestDecoder(array(1,2,3));
|
$source = $this->getTestDecoder(array(1,2,3));
|
||||||
$this->assertFalse($source->isBinary());
|
$this->assertFalse($source->isBinary());
|
||||||
|
|
||||||
$source = $this->getTestDecoder(new StdClass);
|
$source = $this->getTestDecoder(new stdClass);
|
||||||
$this->assertFalse($source->isBinary());
|
$this->assertFalse($source->isBinary());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user