public function getClient() { if (null === $this->client) { $this->client = new Client(); } return $this->client; }
/** * */ public function testSetGetClient() { $client = $this->getMockBuilder(\GuzzleHttp\Client::class)->disableOriginalConstructor()->getMock(); $this->object->setClient($client); self::assertSame($client, $this->object->getClient()); }