1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 02:42:45 +02:00

added brightness and contrast methods

This commit is contained in:
Oliver Vogel
2013-02-03 13:57:49 +01:00
parent c0972d7bbc
commit 486743dfcf
3 changed files with 42 additions and 0 deletions

View File

@@ -294,4 +294,20 @@ class ImageTest extends PHPUnit_Framework_Testcase
}
public function testBrightnessImage()
{
$img = $this->getTestImage();
$img->brightness(50);
$img->brightness(-50);
$this->assertInstanceOf('Intervention\Image\Image', $img);
}
public function testContrastImage()
{
$img = $this->getTestImage();
$img->contrast(50);
$img->contrast(-50);
$this->assertInstanceOf('Intervention\Image\Image', $img);
}
}