[tests] clear() at the end of each class, not the end of each test
This commit is contained in:
@ -51,8 +51,6 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) {
|
|||||||
global $_tracer;
|
global $_tracer;
|
||||||
$_tracer->end(); # test
|
$_tracer->end(); # test
|
||||||
$_tracer->end(); # $this->getName()
|
$_tracer->end(); # $this->getName()
|
||||||
$_tracer->clear();
|
|
||||||
$_tracer->flush("data/test-trace.json");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function tearDownAfterClass(): void
|
public static function tearDownAfterClass(): void
|
||||||
@ -60,6 +58,8 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) {
|
|||||||
parent::tearDownAfterClass();
|
parent::tearDownAfterClass();
|
||||||
global $_tracer;
|
global $_tracer;
|
||||||
$_tracer->end(); # get_called_class()
|
$_tracer->end(); # get_called_class()
|
||||||
|
$_tracer->clear();
|
||||||
|
$_tracer->flush("data/test-trace.json");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static function create_user(string $name): void
|
protected static function create_user(string $name): void
|
||||||
|
Reference in New Issue
Block a user