View Issue Details

IDProjectCategoryView StatusLast Update
0001779XdebugCode Coveragepublic2020-04-24 14:40
ReporterJParkinson1991Assigned Toderick 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version2.9.4 
Target Version2.9.5Fixed in Version2.9.5 
Summary0001779: Nested multi-line built-in function in namespace are not covered
DescriptionWhen nesting multiline functions code coverage shows the nested function(s) name line(s) as not executed, the paramters however are shown as executed.
Steps To ReproduceGIT Repo: https://github.com/JParkinson1991/xdebug-code-coverage-multilne-functions
Clone: https://github.com/JParkinson1991/xdebug-code-coverage-multilne-functions.git

Run commands:
$ composer install
$ composer run test
$ composer run open

If your OS does not support the 'open' command manually open `./var/coverage/index.html`
Additional InformationPHP 7.4.5 (cli) (built: Apr 18 2020 03:17:54) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Xdebug v2.9.4, Copyright (c) 2002-2020, by Derick Rethans
    with Zend OPcache v7.4.5, Copyright (c), by Zend Technologies
TagsNo tags attached.
Operating SystemMacOS 10.15.4
PHP Version7.4.0-7.4.4

Activities

JParkinson1991

2020-04-24 12:46

reporter  

coverage.png (304,409 bytes)

derick

2020-04-24 14:40

administrator   ~0005402

Fixed in GitHub, for Xdebug 2.9.5. Thanks for your report.

Issue History

Date Modified Username Field Change
2020-04-24 12:46 JParkinson1991 New Issue
2020-04-24 12:46 JParkinson1991 File Added: coverage.png
2020-04-24 14:14 derick Status new => assigned
2020-04-24 14:14 derick Target Version => 2.9.5
2020-04-24 14:14 derick Summary Nested multi-line function showing 'Not executed' => Nested multi-line built-in function in namespace are not covered
2020-04-24 14:40 derick Assigned To => derick
2020-04-24 14:40 derick Status assigned => closed
2020-04-24 14:40 derick Resolution open => fixed
2020-04-24 14:40 derick Fixed in Version => 2.9.5
2020-04-24 14:40 derick Note Added: 0005402