public function testResize() { $imageCreator = new GdThumb(); $imageCreator->setSource($this->path . 'hlegius.jpg'); $return = $imageCreator->resizePx(100, 100); $this->assertInstanceOf('Deepzoom\\ImageAdapter\\ImageAdapterInterface', $return, 'resize() Resizes an image to be no larger than $width or $height'); $this->assertAttributeInternalType('array', 'currentDimensions', $return, 'resize() Resizes an image to be no larger than $width or $height'); // preserve the proportions $this->assertAttributeEquals(array('width' => 100, 'height' => 74), 'currentDimensions', $return, 'resize() Resizes an image to be no larger than $width or $height'); $this->assertAttributeInternalType('resource', 'oldImage', $return, 'resize() Resizes an image to be no larger than $width or $height'); }