Skip to content

Dead code is not rendered correctly #221

@sebastianbergmann

Description

@sebastianbergmann

Foo.php

<?php
class Foo
{
    public function bar()
    {
        return true;
        return true;
    }
}

FooTest.php

<?php
class FooTest extends PHPUnit_Framework_TestCase
{
    public function testOne()
    {
        $o = new Foo;
        $o->bar();
    }
}

Output

PHPUnit 3.7.31 by Sebastian Bergmann.

.

Time: 147 ms, Memory: 6.75Mb

OK (1 test, 0 assertions)

Generating code coverage report in HTML format ... done

Screenshot

screenshot from 2014-02-24 12 01 17

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions