Exemple #1
0
 /**
  * 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());
 }
Exemple #2
0
 /**
  * Test manipulate with string
  */
 public function testManipulateWithNonNumericString()
 {
     static::setExpectedExceptionRegExp('LogicException');
     $this->resizeCrop->manipulate($this->image->open($this->path), 'test', 'test');
 }
Exemple #3
0
 /**
  * Test manipulate with large values
  */
 public function testManipulateWithTooLargeParameters()
 {
     static::setExpectedExceptionRegExp('Todstoychev\\Icr\\Exception\\ImageTooSmallException');
     $this->crop->manipulate($this->image->open($this->path), 2000, 2000);
 }
Exemple #4
0
 /**
  * Test manipulate with large input
  */
 public function testManipulateWithLargeInput()
 {
     static::setExpectedExceptionRegExp('LogicException');
     $this->resize->manipulate($this->image->open($this->path), 2000, 2000);
 }