@@ -44,22 +44,22 @@ public static function rollBack(): void
44
44
45
45
public function bootstrap (Configuration $ configuration , Facade $ facade , ParameterCollection $ parameters ): void
46
46
{
47
- $ facade ->registerSubscriber (new class () implements TestRunnerStartedSubscriber {
47
+ $ facade ->registerSubscriber (new class implements TestRunnerStartedSubscriber {
48
48
public function notify (TestRunnerStartedEvent $ event ): void
49
49
{
50
50
StaticDriver::setKeepStaticConnections (true );
51
51
}
52
52
});
53
53
54
- $ facade ->registerSubscriber (new class () implements TestStartedSubscriber {
54
+ $ facade ->registerSubscriber (new class implements TestStartedSubscriber {
55
55
public function notify (TestStartedEvent $ event ): void
56
56
{
57
57
StaticDriver::beginTransaction ();
58
58
PHPUnitExtension::$ transactionStarted = true ;
59
59
}
60
60
});
61
61
62
- $ facade ->registerSubscriber (new class () implements SkippedSubscriber {
62
+ $ facade ->registerSubscriber (new class implements SkippedSubscriber {
63
63
public function notify (Skipped $ event ): void
64
64
{
65
65
// this is a workaround to allow skipping tests within the setUp() method
@@ -68,22 +68,22 @@ public function notify(Skipped $event): void
68
68
}
69
69
});
70
70
71
- $ facade ->registerSubscriber (new class () implements TestFinishedSubscriber {
71
+ $ facade ->registerSubscriber (new class implements TestFinishedSubscriber {
72
72
public function notify (TestFinishedEvent $ event ): void
73
73
{
74
74
PHPUnitExtension::rollBack ();
75
75
}
76
76
});
77
77
78
- $ facade ->registerSubscriber (new class () implements ErroredSubscriber {
78
+ $ facade ->registerSubscriber (new class implements ErroredSubscriber {
79
79
public function notify (Errored $ event ): void
80
80
{
81
81
// needed as for errored tests the "Finished" event is not triggered
82
82
PHPUnitExtension::rollBack ();
83
83
}
84
84
});
85
85
86
- $ facade ->registerSubscriber (new class () implements TestRunnerFinishedSubscriber {
86
+ $ facade ->registerSubscriber (new class implements TestRunnerFinishedSubscriber {
87
87
public function notify (TestRunnerFinishedEvent $ event ): void
88
88
{
89
89
StaticDriver::setKeepStaticConnections (false );
0 commit comments