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