Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a191144584
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (33 sloc) 0.467 kb
--TEST--
Test for bug #535: Code coverage and return before function|class ending
--INI--
xdebug.overload_var_dump=0
--FILE--
<?php
xdebug_start_code_coverage();
class test
{
function a() {
return true;
}
}
$a = new test();
$a->a();
var_dump(xdebug_get_code_coverage());
?>
--EXPECTF--
array(1) {
["%sbug00535.php"]=>
array(5) {
[5]=>
int(1)
[7]=>
int(1)
[11]=>
int(1)
[12]=>
int(1)
[14]=>
int(1)
}
}
Jump to Line
Something went wrong with that request. Please try again.