@@ -49,11 +49,9 @@ public function notificationProvider()
4949 self ::setUpBeforeClass (); // dirty hack of PHPUnit limitation
5050 return array (
5151 array (self ::$ endpoints ['standard ' ], null , null , null ),
52- array (self ::$ endpoints ['standard ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['standard ' ], self ::$ tokens ['standard ' ]),
53- array (self ::$ endpoints ['standard ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['standard ' ], null ),
52+ array (self ::$ endpoints ['standard ' ], '{"message":"Plop","tag":"general"} ' , self ::$ keys ['standard ' ], self ::$ tokens ['standard ' ]),
5453 array (self ::$ endpoints ['GCM ' ], null , null , null ),
55- array (self ::$ endpoints ['GCM ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['GCM ' ], self ::$ tokens ['GCM ' ]),
56- array (self ::$ endpoints ['GCM ' ], '{message: "Plop", tag: "general"} ' , self ::$ keys ['GCM ' ], null ),
54+ array (self ::$ endpoints ['GCM ' ], '{"message":"Plop","tag":"general"} ' , self ::$ keys ['GCM ' ], self ::$ tokens ['GCM ' ]),
5755 );
5856 }
5957
@@ -74,7 +72,7 @@ public function testSendNotification($endpoint, $payload, $userPublicKey, $userA
7472
7573 public function testSendNotificationWithOldAPI ()
7674 {
77- $ this ->setExpectedException ('ErrorException ' , 'The API has changed: sendNotification now takes the optional user auth token as parameter. ' );
75+ $ this ->setExpectedException ('ErrorException ' , 'The API has changed: sendNotification now takes the user auth token as parameter. ' );
7876 $ this ->webPush ->sendNotification (
7977 self ::$ endpoints ['standard ' ],
8078 'test ' ,
0 commit comments