You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php
namespace ow2\demo;
class Calculator
{
public $var = 'a default value';
public function add(int $a, int $b)
{
return $a + $b;
}
public function sub(int $a, int $b)
{
return $a - $b;
}
}
The test only calls add function so I expect the report to be something like:
I'm running a test on the following basic class:
The test only calls
add
function so I expect the report to be something like:but instead the report include
lineToCover
entries for function closing braces:This report lead to a coverage of 25% in Sonar whereas it should be 50%.
The text was updated successfully, but these errors were encountered: