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
class SQLTest extends PHPUnit_Framework_TestCase {
public function test() {
$sql = new SQL();
$doc = $sql->main(3);
$this->assertEquals(false, $doc);
}
public function test2() {
$sql = new SQL();
$doc = $sql->main(8);
$this->assertEquals(true, $doc);
}
public function testBla(){
$test = "string";
$this -> assertEquals($test, "string");
}
}
Do I have to do any extra configuration or is 0.00% really correct? Thanks!
The text was updated successfully, but these errors were encountered:
@molerat619: PHPUnit did not support branch coverage until recently, so our parser does not output branch coverage metrics for PHPUnit.
From the PHPUnit docs, it does look like they might have added support for branch coverage; will open this as a feature request internally to find out if this is now in a parseable format.
We have completely redone our test and coverage reports handling and PHP reports should be working for both. Closing this issue but please let us know if you run into problems.
I am testing phpunit tests with Shippable CI but I always get 0.00% in Branch Coverage while Sequence Coverage is 100%.
This is my shippable.yml:
This is sql.php:
This is my test.php:
Do I have to do any extra configuration or is 0.00% really correct? Thanks!
The text was updated successfully, but these errors were encountered: