Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
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
(
)
;