/** * Test the JImage::isTransparent method to make sure it gives the correct * result if the image does not haave an alpha channel. * * @return void * * @since 11.3 */ public function testOpaqueIsNotTransparent() { // Create a 10x10 image handle and add no transparency. $opaqueImage = imagecreatetruecolor(10, 10); // Create a new JImageInspector object from the image handle. $opaque = new JImageInspector($opaqueImage); // Assert that the image does not have transparency. $this->assertFalse($opaque->isTransparent()); }