mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
junit support
This commit is contained in:
28
src/Logging/JUnit/Subscriber/Subscriber.php
Normal file
28
src/Logging/JUnit/Subscriber/Subscriber.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Pest\Logging\JUnit\Subscriber;
|
||||
|
||||
use Pest\Logging\JUnit\JUnitLogger;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
abstract class Subscriber
|
||||
{
|
||||
/**
|
||||
* Creates a new Subscriber instance.
|
||||
*/
|
||||
public function __construct(private readonly JUnitLogger $logger)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new JunitLogger instance.
|
||||
*/
|
||||
final protected function logger(): JUnitLogger
|
||||
{
|
||||
return $this->logger;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user