Skip to content

Commit ffbac6b

Browse files
committed
Edit documentation
1 parent 04d4955 commit ffbac6b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/LiveComponent/src/Test/InteractsWithLiveComponents.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ protected function assertComponentEmitEvent(TestLiveComponent $testLiveComponent
5555
/**
5656
* @param array<string, int|float|string|bool|null> $data
5757
*/
58-
public function __construct(private KernelTestCase $parent, private readonly string $eventName, private readonly array $data) {}
58+
public function __construct(private KernelTestCase $parent, private readonly string $eventName, private readonly array $data)
59+
{
60+
}
5961

6062
public function withDataSubset(array $expectedEventData): void
6163
{
@@ -74,9 +76,10 @@ public function withDataSubset(array $expectedEventData): void
7476
);
7577
}
7678
}
79+
7780
public function withData(array $expectedEventData): void
7881
{
79-
$this->parent->assertEquals($expectedEventData, $this->data, sprintf('The expected event "%s" data does not match.', $this->eventName));
82+
$this->parent->assertEquals($expectedEventData, $this->data, \sprintf('The expected event "%s" data does not match.', $this->eventName));
8083
}
8184
};
8285
}

0 commit comments

Comments
 (0)