[wp-trac] [WordPress Trac] #46149: PHPUnit 8.x support

WordPress Trac noreply at wordpress.org
Fri Aug 6 21:45:46 UTC 2021


#46149: PHPUnit 8.x support
-------------------------------------------------+-------------------------
 Reporter:  SergeyBiryukov                       |       Owner:  netweb
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  high                                 |   Milestone:  5.9
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-unit-tests early php8  |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"51564" 51564]:
 {{{
 #!CommitTicketReference repository="" revision="51564"
 Tests: Replace `assertFileNotExists()` with `assertFileDoesNotExist()`.

 The `assertFileNotExists()` method was hard deprecated in PHPUnit 9.1 and
 the functionality will be removed in PHPUnit 10.0.

 The `assertFileDoesNotExist()` method was introduced as a replacement in
 PHPUnit 9.1.

 This new PHPUnit method is polyfilled by the PHPUnit Polyfills and
 switching to it will future-proof the tests some more.

 References:
 *
 https://github.com/sebastianbergmann/phpunit/blob/9.1.5/ChangeLog-9.1.md#910
 ---2020-04-03
 * https://github.com/sebastianbergmann/phpunit/issues/4076

 Follow-up to [51559-51563].

 Props jrf.
 See #46149.
 }}}

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


More information about the wp-trac mailing list