Exemple #1
0
 /**
  * Get opened client.
  *
  * @return \ZendService\Google\Gcm\Client
  */
 protected function getPushClient()
 {
     if ($this->pushClient === null) {
         $this->pushClient = $this->builder->buildPushClient($this->getParameter('api_key'));
     }
     return $this->pushClient;
 }
Exemple #2
0
 public function testPushClient()
 {
     $client = $this->builder->buildPushClient('my_api_key');
     self::assertInstanceOf(Client::class, $client);
 }