コード例 #1
0
ファイル: ScaleTest.php プロジェクト: todstoychev/icr
 /**
  * Test manipulate with large values
  */
 public function testManipulateWithLargeValues()
 {
     $image = $this->scale->manipulate($this->image->open($this->path), 2000, 2000);
     static::assertEquals(2000, $image->getSize()->getWidth());
     static::assertEquals(2000, $image->getSize()->getHeight());
 }
コード例 #2
0
ファイル: ResizeCropTest.php プロジェクト: todstoychev/icr
 /**
  * Test manipulate with string
  */
 public function testManipulateWithNonNumericString()
 {
     static::setExpectedExceptionRegExp('LogicException');
     $this->resizeCrop->manipulate($this->image->open($this->path), 'test', 'test');
 }
コード例 #3
0
ファイル: CropTest.php プロジェクト: todstoychev/icr
 /**
  * Test manipulate with large values
  */
 public function testManipulateWithTooLargeParameters()
 {
     static::setExpectedExceptionRegExp('Todstoychev\\Icr\\Exception\\ImageTooSmallException');
     $this->crop->manipulate($this->image->open($this->path), 2000, 2000);
 }
コード例 #4
0
ファイル: ResizeTest.php プロジェクト: todstoychev/icr
 /**
  * Test manipulate with large input
  */
 public function testManipulateWithLargeInput()
 {
     static::setExpectedExceptionRegExp('LogicException');
     $this->resize->manipulate($this->image->open($this->path), 2000, 2000);
 }