[tests] clear() at the end of each class, not the end of each test
This commit is contained in:
parent
e754ec89a7
commit
39bfde6dff
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,6 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) {
|
|||
global $_tracer;
|
||||
$_tracer->end(); # test
|
||||
$_tracer->end(); # $this->getName()
|
||||
$_tracer->clear();
|
||||
$_tracer->flush("data/test-trace.json");
|
||||
}
|
||||
|
||||
public static function tearDownAfterClass(): void
|
||||
|
@ -60,6 +58,8 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) {
|
|||
parent::tearDownAfterClass();
|
||||
global $_tracer;
|
||||
$_tracer->end(); # get_called_class()
|
||||
$_tracer->clear();
|
||||
$_tracer->flush("data/test-trace.json");
|
||||
}
|
||||
|
||||
protected static function create_user(string $name): void
|
||||
|
|
Reference in a new issue