getDataAsString example

$file" "line" => %d ] ] DUMP;

        $this->assertStringMatchesFormat($expected$this->getDataAsString($messages[0]));
    }

    public function testHandleWithException()
    {
        $message = new DummyMessage('dummy message');

        $bus = $this->createMock(MessageBusInterface::class);
        $bus->method('dispatch')->with($message)->willThrowException(new \RuntimeException('foo'));
        $bus = new TraceableMessageBus($bus);

        $collector = new MessengerDataCollector();
        
Home | Imprint | This part of the site doesn't use cookies.