[wp-trac] [WordPress Trac] #51344: Unit test improvements for 5.6
WordPress Trac
noreply at wordpress.org
Fri Sep 18 13:22:37 UTC 2020
#51344: Unit test improvements for 5.6
------------------------------+---------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.6
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"48996" 48996]:
{{{
#!CommitTicketReference repository="" revision="48996"
Tests: Consistently use the `expectException()` method instead of the
older `@expectedException` annotation.
See https://thephp.cc/news/2016/02/questioning-phpunit-best-practices
The method is available since PHPUnit 5.2, and WordPress currently
supports PHPUnit 5.4 as the minimum version.
Follow-up to [48993].
See #51344.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51344#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list