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 | /** |
||
30 | * @dataProvider defaultParametersProvider |
||
31 | */ |
||
32 | public function testDefaults($parameter) |
||
40 | |||
41 | /** |
||
42 | * Parameters provider |
||
43 | * |
||
44 | * @return array |
||
|
|||
45 | */ |
||
46 | public function defaultParametersProvider() |
||
53 | |||
54 | public function testMutators() |
||
66 | |||
67 | /** |
||
68 | * @expectedException \InvalidArgumentException |
||
69 | */ |
||
70 | public function testInvalidAPNSPayload() |
||
76 | |||
77 | /** |
||
78 | * @dataProvider invalidGCMPayloadProvider |
||
79 | * |
||
80 | * @param string $parameter |
||
81 | * |
||
82 | * @expectedException \InvalidArgumentException |
||
83 | */ |
||
84 | public function testInvalidGCMPayload($parameter) |
||
90 | |||
91 | /** |
||
92 | * Payload provider. |
||
93 | * |
||
94 | * @return array |
||
95 | */ |
||
96 | public function invalidGCMPayloadProvider() |
||
114 | |||
115 | public function testPayload() |
||
129 | } |
||
130 |
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.