[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9
WordPress Trac
noreply at wordpress.org
Thu Jul 22 17:14:58 UTC 2021
#53363: Test tool and unit test improvements for 5.9
------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+---------------------
Comment (by SergeyBiryukov):
In [changeset:"51478" 51478]:
{{{
#!CommitTicketReference repository="" revision="51478"
Tests: Add a `$message` parameter for custom assertions in
`WP_UnitTestCase_Base`.
All assertions in PHPUnit have a `$message` parameter. Setting this
parameter allows to distinguish which assertion is failing when a test
runs multiple assertions, making debugging of the tests easier.
This optional parameter is now added for the assertion methods in the
`WP_UnitTestCase_Base` class that were missing it.
Props jrf.
See #53363.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list