← r54824: Coding Standards: Apply spacing changes after `composer format`.

Failed

Environment

Host GreenGeeks
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 7.4.33
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 10.5.18-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 bcmath (7.4.33), curl (7.4.33), 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. (7.4.33), gd (7.4.33), mcrypt (1.0.4), mysqli (7.4.33), gmagick (2.0.5RC1), pcre (7.4.33), xml (7.4.33), xmlreader (7.4.33), zlib (7.4.33), curl (7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0), ghostscript (9.25), graphicsmagick (1.3.38), openssl (1.1.1p FIPS 21 Jun 2022)

Errors/Failures

Tests_Query_FieldsClause::test_should_limit_fields_to_id_and_parent_subset

Tests_Query_FieldsClause::test_should_limit_fields_to_id_and_parent_subset
Posts property for first query is not of expected form.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => stdClass Object (
-        'ID' => 36019
+        'ID' => 36015
         'post_parent' => 0
     )
     1 => stdClass Object (
-        'ID' => 36018
+        'ID' => 36016
         'post_parent' => 0
     )
     2 => stdClass Object (...)
     3 => stdClass Object (
-        'ID' => 36016
+        'ID' => 36018
         'post_parent' => 0
     )
     4 => stdClass Object (
-        'ID' => 36015
+        'ID' => 36019
         'post_parent' => 0
     )
 )

/tmp/wp-test-runner/tests/phpunit/tests/query/fieldsClause.php:67
/tmp/wp-test-runner/phpunit-5.7.phar:598

Tests_Query_FieldsClause::test_should_include_filtered_values_in_addition_to_id_and_parent_subset

Tests_Query_FieldsClause::test_should_include_filtered_values_in_addition_to_id_and_parent_subset
Posts property for first query is not of expected form.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => stdClass Object (
-        'ID' => 36019
+        'ID' => 36015
         'post_parent' => 0
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     1 => stdClass Object (
-        'ID' => 36018
+        'ID' => 36016
         'post_parent' => 0
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     2 => stdClass Object (...)
     3 => stdClass Object (
-        'ID' => 36016
+        'ID' => 36018
         'post_parent' => 0
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     4 => stdClass Object (
-        'ID' => 36015
+        'ID' => 36019
         'post_parent' => 0
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
 )

/tmp/wp-test-runner/tests/phpunit/tests/query/fieldsClause.php:154
/tmp/wp-test-runner/phpunit-5.7.phar:598

Tests_Query_FieldsClause::test_should_include_filtered_values

Tests_Query_FieldsClause::test_should_include_filtered_values
Posts property for first query is not of expected form.
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
 Array (
     0 => WP_Post Object (
-        'ID' => 36019
+        'ID' => 36015
         'post_author' => '0'
         'post_date' => '2022-11-12 12:02:10'
         'post_date_gmt' => '2022-11-12 12:02:10'
-        'post_content' => 'Post content 0006675'
-        'post_title' => 'Post title 0006675'
-        'post_excerpt' => 'Post excerpt 0006675'
+        'post_content' => 'Post content 0006671'
+        'post_title' => 'Post title 0006671'
+        'post_excerpt' => 'Post excerpt 0006671'
         'post_status' => 'publish'
         'comment_status' => 'closed'
         'ping_status' => 'closed'
         'post_password' => ''
-        'post_name' => 'post-title-0006675'
+        'post_name' => 'post-title-0006671'
@@ @@
         'post_parent' => 0
-        'guid' => 'http://example.org/?wptests_pt=post-title-0006675'
+        'guid' => 'http://example.org/?wptests_pt=post-title-0006671'
         'menu_order' => 0
         'post_type' => 'wptests_pt'
         'post_mime_type' => ''
         'comment_count' => '0'
         'filter' => 'raw'
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     1 => WP_Post Object (
-        'ID' => 36018
+        'ID' => 36016
         'post_author' => '0'
         'post_date' => '2022-11-12 12:02:10'
         'post_date_gmt' => '2022-11-12 12:02:10'
-        'post_content' => 'Post content 0006674'
-        'post_title' => 'Post title 0006674'
-        'post_excerpt' => 'Post excerpt 0006674'
+        'post_content' => 'Post content 0006672'
+        'post_title' => 'Post title 0006672'
+        'post_excerpt' => 'Post excerpt 0006672'
         'post_status' => 'publish'
         'comment_status' => 'closed'
         'ping_status' => 'closed'
         'post_password' => ''
-        'post_name' => 'post-title-0006674'
+        'post_name' => 'post-title-0006672'
@@ @@
         'post_parent' => 0
-        'guid' => 'http://example.org/?wptests_pt=post-title-0006674'
+        'guid' => 'http://example.org/?wptests_pt=post-title-0006672'
         'menu_order' => 0
         'post_type' => 'wptests_pt'
         'post_mime_type' => ''
         'comment_count' => '0'
         'filter' => 'raw'
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     2 => WP_Post Object (...)
     3 => WP_Post Object (
-        'ID' => 36016
+        'ID' => 36018
         'post_author' => '0'
         'post_date' => '2022-11-12 12:02:10'
         'post_date_gmt' => '2022-11-12 12:02:10'
-        'post_content' => 'Post content 0006672'
-        'post_title' => 'Post title 0006672'
-        'post_excerpt' => 'Post excerpt 0006672'
+        'post_content' => 'Post content 0006674'
+        'post_title' => 'Post title 0006674'
+        'post_excerpt' => 'Post excerpt 0006674'
         'post_status' => 'publish'
         'comment_status' => 'closed'
         'ping_status' => 'closed'
         'post_password' => ''
-        'post_name' => 'post-title-0006672'
+        'post_name' => 'post-title-0006674'
@@ @@
         'post_parent' => 0
-        'guid' => 'http://example.org/?wptests_pt=post-title-0006672'
+        'guid' => 'http://example.org/?wptests_pt=post-title-0006674'
         'menu_order' => 0
         'post_type' => 'wptests_pt'
         'post_mime_type' => ''
         'comment_count' => '0'
         'filter' => 'raw'
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
     4 => WP_Post Object (
-        'ID' => 36015
+        'ID' => 36019
         'post_author' => '0'
         'post_date' => '2022-11-12 12:02:10'
         'post_date_gmt' => '2022-11-12 12:02:10'
-        'post_content' => 'Post content 0006671'
-        'post_title' => 'Post title 0006671'
-        'post_excerpt' => 'Post excerpt 0006671'
+        'post_content' => 'Post content 0006675'
+        'post_title' => 'Post title 0006675'
+        'post_excerpt' => 'Post excerpt 0006675'
         'post_status' => 'publish'
         'comment_status' => 'closed'
         'ping_status' => 'closed'
         'post_password' => ''
-        'post_name' => 'post-title-0006671'
+        'post_name' => 'post-title-0006675'
@@ @@
         'post_parent' => 0
-        'guid' => 'http://example.org/?wptests_pt=post-title-0006671'
+        'guid' => 'http://example.org/?wptests_pt=post-title-0006675'
         'menu_order' => 0
         'post_type' => 'wptests_pt'
         'post_mime_type' => ''
         'comment_count' => '0'
         'filter' => 'raw'
-        'test_post_fields' => 1
-        'test_post_clauses' => 2
+        'test_post_fields' => '1'
+        'test_post_clauses' => '2'
     )
 )

/tmp/wp-test-runner/tests/phpunit/tests/query/fieldsClause.php:213
/tmp/wp-test-runner/phpunit-5.7.phar:598