/** * 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; }
public function testPushClient() { $client = $this->builder->buildPushClient('my_api_key'); self::assertInstanceOf(Client::class, $client); }