[wp-trac] [WordPress Trac] #39237: PHPunint coverage reports fail if the is out to the stdout or header

WordPress Trac noreply at wordpress.org
Sun Jan 29 09:58:38 UTC 2017


#39237: PHPunint coverage reports fail if the is out to the stdout or header
------------------------------+------------------------------
 Reporter:  pbearne           |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Review
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch       |     Focuses:
------------------------------+------------------------------
Description changed by swissspidy:

Old description:

> trying to get the coverage report to work :-)
>
> https://phpunit.de/manual/current/en/textui.html
>
> and their error due to the ech statamnts in the phpunit install.ph  anad
> bootstap.php
>
> i.e.
> {{{#!php
> <?php
> echo "Installing..." . PHP_EOL;
> }}}
>

> and due to the header value been set in wp_redirect() in pluggable.php
> why this is running for unittest ???
>
> it looks like we need to test for if a coverage report is been created
> and not echo to the console

New description:

 trying to get the coverage report to work :-)

 https://phpunit.de/manual/current/en/textui.html

 and their error due to the ech statements in the phpunit `install.php` and
 `bootstrap.php`

 i.e.
 {{{#!php
 <?php
 echo "Installing..." . PHP_EOL;
 }}}


 and due to the header value been set in `wp_redirect()` in `pluggable.php`
 why this is running for unittest ???

 it looks like we need to test for if a coverage report is been created and
 not echo to the console

--

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


More information about the wp-trac mailing list