Skip to content

Commit 531fda4

Browse files
janklandunglas
authored andcommitted
Add missing arguments when calling the legacy extension
1 parent 2ef4eda commit 531fda4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ServerExtension.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function __construct(private $extension)
7878

7979
public function notify(TestStartedEvent $event): void
8080
{
81-
$this->extension->executeBeforeTest();
81+
$this->extension->executeBeforeTest($event->test()->name());
8282
}
8383
});
8484

@@ -89,7 +89,7 @@ public function __construct(private $extension)
8989

9090
public function notify(TestFinishedEvent $event): void
9191
{
92-
$this->extension->executeAfterTest();
92+
$this->extension->executeAfterTest($event->test()->name(), (float) $event->telemetryInfo()->time()->seconds());
9393
}
9494
});
9595

@@ -100,7 +100,7 @@ public function __construct(private $extension)
100100

101101
public function notify(Errored $event): void
102102
{
103-
$this->extension->executeAfterTestError();
103+
$this->extension->executeAfterTestError($event->test()->name(), $event->throwable()->message(), (float) $event->telemetryInfo()->time()->seconds());
104104
}
105105
});
106106

@@ -111,7 +111,7 @@ public function __construct(private $extension)
111111

112112
public function notify(Failed $event): void
113113
{
114-
$this->extension->executeAfterTestFailure();
114+
$this->extension->executeAfterTestFailure($event->test()->name(), $event->throwable()->message(), (float) $event->telemetryInfo()->time()->seconds());
115115
}
116116
});
117117
}

0 commit comments

Comments
 (0)