--TEST-- Testing clone keyword --SKIPIF-- --FILE-- newImage(100, 100, new ImagickPixel("white")); $new = clone $im; if ($new->getImageWidth() == 100 && $new->getImageHeight() == 100) { echo "Cloning succeeded\n"; } else { echo "Cloning failed\n"; } } catch (Exception $e) { echo "Cloning failed\n"; } ?> --EXPECTF-- --- Testing clone keyword Cloning succeeded