[xdebug-dev] Bug 0000201: Include files with no executed line of code in code coverage

From: <xdebug-dev[@]lists.xdebug.org>
Date: Tue, 26 Sep 2006 23:42:08 +0200

The following NEW bug has been ADDED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000201
======================================================================
Reporter: sebastian
Handler:
======================================================================
Project: Xdebug
Bug ID: 201
Category: Feature/Change request
Reproducibility: always
Severity: trivial
Priority: normal
Status: new
Operating System: Irrelevant
PHP Version: 5.1-dev
Xdebug Version: 2.0.0rc1-dev
======================================================================
Date Submitted: 2006-09-26 23:42 CEST
Last Modified: 2006-09-26 23:42 CEST
======================================================================
Summary: Include files with no executed line of code in code coverage
Description:
sb[@]wopr-mobile ~ % cat Foo.php
<?php
class Foo {
    public function bar()
    {
    }
}
?>
sb[@]wopr-mobile ~ % cat test.php
<?php
require_once 'Foo.php';

xdebug_start_code_coverage(XDEBUG_CC_UNUSED | XDEBUG_CC_DEAD_CODE);

$cc = xdebug_get_code_coverage();
xdebug_stop_code_coverage();

print_r($cc);
?>
sb[@]wopr-mobile ~ % php test.php
Array
(
    [/home/sb/test.php] => Array
        (
            [6] => 1
        )

)

======================================================================

Bug History
Date Modified Username Field Change
======================================================================
2006-09-26 23:42sebastian New Bug
2006-09-26 23:42sebastian Bug Monitored: sebastian
======================================================================
Received on Tue Sep 26 2006 - 23:42:12 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST