| @@ 58-65 (lines=8) @@ | ||
| 55 | assertThat($message->getMetadata(), is(identicalTo($this->metadata))); |
|
| 56 | } |
|
| 57 | ||
| 58 | public function testIsValidIsFalse() |
|
| 59 | { |
|
| 60 | $message = new Message('foo', $this->metadata, function () { |
|
| 61 | return false; |
|
| 62 | }); |
|
| 63 | ||
| 64 | assertThat($message->isValid(), is(identicalTo(false))); |
|
| 65 | } |
|
| 66 | ||
| 67 | public function testIsValidIsTrue() |
|
| 68 | { |
|
| @@ 67-74 (lines=8) @@ | ||
| 64 | assertThat($message->isValid(), is(identicalTo(false))); |
|
| 65 | } |
|
| 66 | ||
| 67 | public function testIsValidIsTrue() |
|
| 68 | { |
|
| 69 | $message = new Message('foo', $this->metadata, function () { |
|
| 70 | return true; |
|
| 71 | }); |
|
| 72 | ||
| 73 | assertThat($message->isValid(), is(identicalTo(true))); |
|
| 74 | } |
|
| 75 | ||
| 76 | public function testIsValidIsCalledWithMessage() |
|
| 77 | { |
|