trait FooTestTrait
{
public function test__foo() : void
{
$this->expectException(\Exception::class);
throw new \Exception('hello');
// the closing brace is reported as uncovered
}
public function prov__bar() : array
{
return [
[ 'a'], // this line is reported as uncovered
];
}
/**
* @dataProvider prov__bar
*/
public function test__bar(string $arg) : void
{
$this->assertSame('a', $arg);
}
}
class FooTest
{
use FooTestTrait;
}