[wp-trac] [WordPress Trac] #43218: PHPUnit 7.x support

WordPress Trac noreply at wordpress.org
Mon Jan 28 15:38:04 UTC 2019


#43218: PHPUnit 7.x support
------------------------------------------------+--------------------------
 Reporter:  ayeshrajans                         |       Owner:
                                                |  SergeyBiryukov
     Type:  defect (bug)                        |      Status:  accepted
 Priority:  normal                              |   Milestone:  5.1
Component:  Build/Test Tools                    |     Version:  trunk
 Severity:  normal                              |  Resolution:
 Keywords:  has-patch needs-docs needs-testing  |     Focuses:
------------------------------------------------+--------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:29 desrosj]:
 > On PHPUnit 7:
 >
 >
 > {{{
 > 1) WP_Test_REST_Schema_Sanitization::test_type_string
 > Failed asserting that two strings are equal.
 > --- Expected
 > +++ Actual
 > @@ @@
 > -'1.10'
 > +'1.1'
 > /home/travis/build/WordPress/wordpress-develop/tests/phpunit/tests/rest-
 api/rest-schema-sanitization.php:41
 > }}}

 This test passes on PHPUnit 7.1 and fails on 7.2+, investigating futher.

 Also seeing some warnings about `phpunit.xml.dist` with 7.2+:
 {{{
   Warning - The configuration file did not pass validation!
   The following problems have been detected:

   Line 17:
   - Element 'file': This element is not expected. Expected is ( exclude ).

   Line 37:
   - Element 'log', attribute 'logIncompleteSkipped': The attribute
 'logIncompleteSkipped' is not allowed.

   Line 78:
   - Element 'directory': This element is not expected. Expected is ( file
 ).

   Test results may not be as expected.
 }}}

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


More information about the wp-trac mailing list