Closed jakzal closed 6 years ago
@jakzal thanks for your report. Could you share your phpunit test ?
I can reproduce the same output only if I comment all Blackfire assert:
public function testSomething()
{
$config = new Profile\Configuration();
// define some assertions
// $config
// ->assert('metrics.sql.queries.count < 1', 'SQL queries')
// ->assert('metrics.twig.render.count < 3', 'Rendered Twig templates')
// ->assert('metrics.twig.compile.count == 0', 'Twig compilation')
// ;
$profile = $this->assertBlackfire($config, function () {
echo "done !";
});
}
Indeed I haven't registered any assertions in my test as:
Hello, thanks again for reporting this. It has been fixed in latest release
I followed https://blackfire.io/docs/integrations/phpunit to write a simple integration tests. I'm getting
0 tests failures out of 0
error back:Seems that
Profile::$data
is not populated with some needed details. For example, thereport
key is null:while
Profile::isSuccessful()
expects it: