[wp-trac] [WordPress Trac] #40532: Find a workaround for unit tests that have a dependency on XDebug
WordPress Trac
noreply at wordpress.org
Sun Dec 3 21:00:19 UTC 2017
#40532: Find a workaround for unit tests that have a dependency on XDebug
------------------------------------------+------------------------------
Reporter: johnbillion | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+------------------------------
Comment (by jmichaelward):
I spent some time digging around the web for answers to this issue and
have come up mostly empty. One question I do have is whether the speed in
which tests run in Travis are related to the mere presence of Xdebug, or
rather that Xdebug is enabled for the duration of the test process.
Xdebug does have two methods - `xdebug_enable` and `xdebug_disable` which,
I would think, could be triggered within particular tests that require the
`xdebug_get_headers` method. This would require Xdebug to be included in
the Travis PHP ini file, but with the `default_enable` flag set to `false`
and, I believe, `remote_enable` set to true. Outside of that, I haven't
found a definitive way to get headers while PHP is running in the CLI.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40532#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list