Example #1
0
 function test_bmp_resize_with_width_no_width_and_height()
 {
     $img = new canvas(dirname(__FILE__) . "/images/test_image.bmp");
     $this->assertFalse($img->resize());
     $this->assertEqual($img->error_message(), "Inform a new width and/or a new height.");
 }
 function test_load_invalid_image_url()
 {
     $url = "http://www.globo.com";
     $img = new canvas();
     $this->assertFalse($img->load_url($url));
     $this->assertEqual($img->error_message(), "Invalid image URL.");
 }