TraceableTransport
Playwright\Transport\TraceableTransport
Decorator transport that records every interaction with the inner transport. Useful in unit tests for asserting on payloads without stubbing behaviour.
implements TransportInterface
Methods
__construct()
function __construct(private readonly TransportInterface $decorated)
connect()
voidfunction connect(): void
disconnect()
voidfunction disconnect(): void
send()
arrayfunction send(array $message): array
sendAsync()
voidfunction sendAsync(array $message): void
isConnected()
boolfunction isConnected(): bool
processEvents()
voidfunction processEvents(): void
reset()
voidReset all recorded call history.
function reset(): void
getSendCalls()
arrayfunction getSendCalls(): array
getAsyncCalls()
arrayfunction getAsyncCalls(): array
getProcessEventsCalls()
arrayfunction getProcessEventsCalls(): array
getConnectionCalls()
arrayfunction getConnectionCalls(): array