On 10/18/2013 05:23 PM, Brad Jorsch (Anomie) wrote:
> On Fri, Oct 18, 2013 at 5:52 AM, Antoine Musso <[email protected]> wrote:
>> track which lines in MediaWiki core have been executed
> 
> Does it count the whole line as covered for something like
> 
>  $var = $alwaysTrue ? $something : $something_else;
> 
> or just the "true" case?

The whole line. This is a limitation of the PHP extension Xdebug. See
http://phpunit.de/manual/current/en/code-coverage-analysis.html#code-coverage-analysis.edge-cases

Based on my experience, there will also be some false negatives.

-- 
Jan Zerebecki


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to