sebastianbergmann/php-code-coverage — Issue #85: Coverage information broked with xDebug 2.2.0-dev
Author: edorian
Created: 2012-01-11 10:07:35+00:00
State: open

Running PHP 5.3.8 & xDebug 2.2.0-dev the following test produces 100% code coverage.

6 : static public function &getDomain($domain) {
7 1 : return self::$domains[$domain];
8 : }

Running PHP 5.4.0RC5 and xDebug 2.2.0-dev it produces only 50% code coverage.

6 : static public function &getDomain($domain) {
7 1 : return self::$domains[$domain];
8 0 : }

the line with the closing brace is now shown as uncovered.

Chances are this is an xDebug issue but I wanted to make sure first :)

mep.php:

```php
assertSame('b', Foo::getDomain('a'));
}
}
```

foo.php

```php
'b');

static public function &getDomain($domain) {
return self::$domains[$domain];
}
}
```