/** * @expectedException zibo\library\image\exception\ImageException */ public function testCropThrowsExceptionWhenYAndHeightExceedsImage() { $image = new Image($this->testImage); $image->crop(10, 10, 10, $this->testImageHeight + 10); }