We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbb4310 commit a282876Copy full SHA for a282876
1 file changed
tests/PhpUnit/Event/TestSuite/ByPassfinalsStartedSubscriberTest.php
@@ -24,7 +24,7 @@
24
use PHPUnit\Framework\Attributes\Test;
25
use PHPUnit\Framework\TestCase;
26
use Prophecy\PhpUnit\ProphecyTrait;
27
-use ReflectionClass;
+use Symfony\Component\VarExporter\Instantiator;
28
29
#[CoversClass(ByPassfinalsStartedSubscriber::class)]
30
final class ByPassfinalsStartedSubscriberTest extends TestCase
@@ -38,7 +38,7 @@ final class ByPassfinalsStartedSubscriberTest extends TestCase
38
public function notifyWillEnableBypassFinals(): void
39
{
40
$subscriber = new ByPassfinalsStartedSubscriber();
41
- $event = (new ReflectionClass(Started::class))->newInstanceWithoutConstructor();
+ $event = Instantiator::instantiate(Started::class);
42
43
$this->expectNotToPerformAssertions();
44
$subscriber->notify($event);
0 commit comments