| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function メッセージオブジェクトを生成することができる() |
||
| 15 | { |
||
| 16 | $job = new DummyJob(array('test' => '1')); |
||
| 17 | $args = array( |
||
| 18 | 1 => 'test' |
||
| 19 | ); |
||
| 20 | $queueUrl = '/path/to/url'; |
||
| 21 | $message = new Message($args, $job, $queueUrl); |
||
| 22 | $this->assertEquals($job, $message->getJob()); |
||
| 23 | $this->assertInternalType('array', $message->getMessage()); |
||
| 24 | $this->assertEquals($args, $message->getMessage()); |
||
| 25 | $this->assertEquals($queueUrl, $message->getQueueUrl()); |
||
| 26 | } |
||
| 27 | } |
||
| 54 | } |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.