[wp-trac] [WordPress Trac] #50236: Extend namespaced version of PHPUnit's test case class
WordPress Trac
noreply at wordpress.org
Mon Jun 1 19:42:06 UTC 2020
#50236: Extend namespaced version of PHPUnit's test case class
--------------------------------------+----------------------
Reporter: ocean90 | Owner: ocean90
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.5
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+----------------------
Changes (by ocean90):
* owner: (none) => ocean90
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47880" 47880]:
{{{
#!CommitTicketReference repository="" revision="47880"
Build/Test Tools: Let `WP_UnitTestCase_Base` extend the namespaced version
of PHPUnit's test case class.
With the minimum PHP version requirement set to 5.6 we're now able to use
namespaces by default. This replaces `PHPUnit_Framework_TestCase` with
`PHPUnit\Framework\TestCase` for `WP_UnitTestCase_Base` to solve
autocompletion issues with code editors when using more recent PHPUnit
versions. `PHPUnit\Framework\TestCase` is available since PHPUnit 5.4 and
now the minimum required PHPUnit version.
Fixes #50236.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50236#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list