Skip to content

Commit e33f14a

Browse files
author
Alexander Miertsch
committed
Merge pull request #43 from prolic/null_payload
allow null in payload
2 parents f1fcebd + 9196ed8 commit e33f14a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Messaging/MessageDataAssertion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private static function assertSubPayload($payload)
8686
return;
8787
}
8888

89-
Assertion::scalar($payload, 'payload must only contain arrays and scalar values');
89+
Assertion::nullOrscalar($payload, 'payload must only contain arrays and scalar values');
9090
}
9191

9292
/**

tests/Messaging/MessageDataAssertionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ final class MessageDataAssertionTest extends \PHPUnit_Framework_TestCase
2828
*/
2929
public function it_asserts_message_data_returned_by_the_no_op_message_converter()
3030
{
31-
$testAssertions = new DoSomething(['test' => 'assertions']);
31+
$testAssertions = new DoSomething(['test' => 'assertions', ['null' => null]]);
3232

3333
$messageConverter = new NoOpMessageConverter();
3434

0 commit comments

Comments
 (0)