[wp-trac] [WordPress Trac] #31124: PHP unit tests fail with fatal error, imagecreatefrompng() not defined

WordPress Trac noreply at wordpress.org
Sun Jan 25 16:55:25 UTC 2015


#31124: PHP unit tests fail with fatal error, imagecreatefrompng() not defined
--------------------------+--------------------
 Reporter:  iseulde       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.2
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+--------------------

Comment (by iseulde):

 Here are all the tests that fail and are related:


 {{{
 There were 5 failures:

 1) Tests_Image_Functions::test_wp_save_image_file
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'image/png'
 +'image/jpeg'

 wp/svn/trunk/tests/phpunit/tests/image/functions.php:144

 2) Tests_Image_Functions::test_inferred_mime_types
 Failed asserting that two strings are equal.
 --- Expected
 +++ Actual
 @@ @@
 -'image/png'
 +'image/jpeg'

 wp/svn/trunk/tests/phpunit/tests/image/functions.php:235

 3) Tests_Image_Editor_GD::test_supports_mime_type
 Does not support image/png
 Failed asserting that false is true.

 wp/svn/trunk/tests/phpunit/tests/image/editor_gd.php:41

 4) Tests_Image_Editor_GD::test_image_preserves_alpha_on_resize
 Failed asserting that WP_Error Object (...) is not an instance of class
 "WP_Error".

 wp/svn/trunk/tests/phpunit/tests/image/editor_gd.php:467

 5) Tests_Image_Editor_GD::test_image_preserves_alpha
 Failed asserting that WP_Error Object (...) is not an instance of class
 "WP_Error".

 wp/svn/trunk/tests/phpunit/tests/image/editor_gd.php:490
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31124#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list