/** * Test the JImage::getHeight method to make sure it gives the correct * property from the source image. * * @return void * * @since 11.3 */ public function testGetHeight() { // Create a 108x42 image handle and add no transparency. $imageHandle = imagecreatetruecolor(108, 42); // Create a new JImageInspector object from the image handle. $image = new JImageInspector($imageHandle); $this->assertTrue($image->getHeight() == 42, 'Line: ' . __LINE__); }