<?php
function ifthenelse$a$b )
{
    if (
$a) {
        echo 
"A HIT\n";
    }
    if (
$b) {
        echo 
"B HIT\n";
    }
}

<?php
require 'vendor/autoload.php';
use 
SebastianBergmann\CodeCoverage\Filter;
use 
SebastianBergmann\CodeCoverage\Driver\Selector;
use 
SebastianBergmann\CodeCoverage\CodeCoverage;
use 
SebastianBergmann\CodeCoverage\Report\Html\Facade as HtmlReport;

include 
'test.php';

$filter = new Filter;
$filter->includeFiles( [ '/test.php' ] );

$coverage = new CodeCoverage(
    (new 
Selector)->forLineAndPathCoverage($filter),
    
$filter
);

$coverage->start('coverage1'); ifthenelsetruefalse ); $coverage->stop();
$coverage->start('coverage2'); ifthenelsefalsetrue ); $coverage->stop();

(new 
HtmlReport)->process($coverage'/tmp/code-coverage-report');