Lines 0.00% 0 / 4
Branches 0.00% 0 / 4
Paths 0.00% 0 / 2
Functions and Methods 0.00% 0 / 1
Classes and Traits n/a 0 / 0
Name Lines Branches Paths Functions and Methods CRAP Classes and Traits
foo 0.00% 0 / 4 0.00% 0 / 4 0.00% 0 / 2 0.00% 0 / 1 6
Foo n/a 0 / 0 n/a 0 / 0 n/a 0 / 0 n/a 0 / 0 0 n/a 0 / 0
1<?php
2/**
3 * Represents foo.
4 */
5class Foo
6{
7}
8
9/**
10 * @param mixed $bar
11 */
12function &foo($bar)
13{
14    $baz = function () {};
15••    $a   = true ? true : false;
16    $b   = "{$a}";
17    $c   = "${b}";
18}

Branches

Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once. Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement always has an else as part of its logical flow even if you didn't write one.

foo 0/4

#LinesStatusTests
1L12–L15Not covered—
2L15Not covered—
3L15Not covered—
4L15–L18Not covered—

{closure:%ssource_without_namespace.php:14-14} 0/1

#LinesStatusTests
1L14Not covered—

{main} 1/1

#LinesStatusTests
1L19Covered