mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 16:27:23 +01:00
20 lines
420 B
PHP
20 lines
420 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pest\Logging\JUnit\Subscriber;
|
|
|
|
use PHPUnit\Event\TestRunner\ExecutionFinished;
|
|
use PHPUnit\Event\TestRunner\ExecutionFinishedSubscriber;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
final class TestRunnerExecutionFinishedSubscriber extends Subscriber implements ExecutionFinishedSubscriber
|
|
{
|
|
public function notify(ExecutionFinished $event): void
|
|
{
|
|
$this->logger()->flush();
|
|
}
|
|
}
|