1 | <?php |
||
17 | class MessageTest extends \PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @var \Jgut\Tify\Message |
||
21 | */ |
||
22 | protected $message; |
||
23 | |||
24 | public function setUp() |
||
28 | |||
29 | public function testDefaults() |
||
34 | |||
35 | public function testMutators() |
||
49 | |||
50 | /** |
||
51 | * @expectedException \InvalidArgumentException |
||
52 | */ |
||
53 | public function testInvalidParameter() |
||
57 | |||
58 | /** |
||
59 | * @expectedException \InvalidArgumentException |
||
60 | */ |
||
61 | public function testInvalidAPNSPayload() |
||
67 | |||
68 | /** |
||
69 | * @dataProvider invalidGCMPayloadProvider |
||
70 | * |
||
71 | * @param string $parameter |
||
72 | * |
||
73 | * @expectedException \InvalidArgumentException |
||
74 | */ |
||
75 | public function testInvalidGCMPayload($parameter) |
||
81 | |||
82 | /** |
||
83 | * Payload provider. |
||
84 | * |
||
85 | * @return array |
||
|
|||
86 | */ |
||
87 | public function invalidGCMPayloadProvider() |
||
105 | |||
106 | public function testPayload() |
||
120 | } |
||
121 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.