function test_set_invalid_color() { $img = new canvas(); $this->assertFalse($img->set_rgb("invalid_color")); }
<?php error_reporting(E_ALL ^ E_NOTICE ^ E_USER_NOTICE); ini_set('display_errors', 'On'); ini_set('display_startup_errors', true); require_once "../canvas.php"; $file = "test_image.jpg"; $canvas = new canvas($file); $canvas->set_rgb('#df0d32')->merge("test_image.png", array("right", "bottom"))->filter("blur", 23)->show();