← r53652: Media: Add tests for `wp_img_tag_add_decoding_attr()`.

Failed

Environment

Host XSERVER
PHPPHP PHP (PHP: Hypertext Preprocessor) is a general-purpose scripting language especially suited to web development. PHP code is usually processed on a web server by a PHP interpreter. On a web server, the result of the interpreted and executed PHP code would form the whole or part of an HTTP response. Version PHP 5.6.40
DatabaseDatabase A database is an organized collection of data. Access to this data is usually provided by a "database management system" (DBMS) consisting of an integrated set of computer software that allows users to interact with one or more databases and provides access to all of the data contained in the database. Because of the close relationship between them, the term "database" is often used casually to refer to both a database and the DBMS used to manipulate it. Version mysqlMySQL MySQL is an open-source relational database management system (RDBMS). MySQL is free and open-source software under the terms of the GNU General Public License. Ver 15.1 Distrib 5.5.64-MariaDBMariaDB MariaDB is a fork of the MySQL relational database management system (RDBMS), intended to remain free and open-source software under the GNU General Public License. MariaDB intended to maintain high compatibility with MySQL, ensuring a drop-in replacement capability with library binary parity and exact matching with MySQL APIs and commands.
Extensions filterFilter Filters are one of the two types of Hooks https://codex.wordpress.org/Plugin_API/Hooks. They provide a way for functions to modify data of other functions. They are the counterpart to Actions. Unlike Actions, filters are meant to work in an isolated manner, and should never have side effects such as affecting global variables and output. (0.11.0), mysqli (0.1), xmlreader (0.1), zlib (2.0), curl (7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.36 zlib/1.2.7 libidn/1.28 libssh2/1.4.3), ghostscript (9.25), openssl (1.0.2k-fips 26 Jan 2017)

Errors/Failures

Tests_Image_Functions::test_wp_save_image_file::test_wp_save_image_file with data set "WP_Image_Editor_GD; image/webp"

Tests_Image_Functions::test_wp_save_image_file with data set "WP_Image_Editor_GD; image/webp" ('WP_Image_Editor_GD', 'image/webp')
Mime type of the saved image does not match.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-image/webp
+application/octet-stream

/home/xwphtest2/local/tmp/wp-test-runner/tests/phpunit/tests/image/functions.php:288

Tests_Image_Functions::test_inferred_mime_types_when_saving_an_image::test_inferred_mime_types_when_saving_an_image with data set "WP_Image_Editor_GD; Extension: webp; Mime type: image/webp"

Tests_Image_Functions::test_inferred_mime_types_when_saving_an_image with data set "WP_Image_Editor_GD; Extension: webp; Mime type: image/webp" ('WP_Image_Editor_GD', 'webp', 'image/webp')
Mime type of the saved image was not inferred correctly.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-image/webp
+application/octet-stream

/home/xwphtest2/local/tmp/wp-test-runner/tests/phpunit/tests/image/functions.php:402