Skip to content

Commit

Permalink
Merge pull request #43 from prolic/null_payload
Browse files Browse the repository at this point in the history
allow null in payload
  • Loading branch information
codeliner committed Oct 2, 2015
2 parents f1fcebd + 9196ed8 commit e33f14a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Messaging/MessageDataAssertion.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private static function assertSubPayload($payload)
return;
}

Assertion::scalar($payload, 'payload must only contain arrays and scalar values');
Assertion::nullOrscalar($payload, 'payload must only contain arrays and scalar values');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion tests/Messaging/MessageDataAssertionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ final class MessageDataAssertionTest extends \PHPUnit_Framework_TestCase
*/
public function it_asserts_message_data_returned_by_the_no_op_message_converter()
{
$testAssertions = new DoSomething(['test' => 'assertions']);
$testAssertions = new DoSomething(['test' => 'assertions', ['null' => null]]);

$messageConverter = new NoOpMessageConverter();

Expand Down

0 comments on commit e33f14a

Please sign in to comment.