function testLoadFromHandle()
 {
     $handle = imagecreatefrompng(IMG_PATH . '100x100-rainbow.png');
     $img = wiImage::loadFromHandle($handle);
     $this->assertTrue($img->isValid());
     $this->assertTrue($img->isTrueColor());
     $this->assertTrue($handle === $img->getHandle());
     $this->assertTrue(100, $img->getWidth());
     $this->assertTrue(100, $img->getHeight());
     unset($img);
     $this->assertFalse(wiImage::isValidImageHandle($handle));
 }