public function testInjectApi() { $client = new Client(); $reportApiMock = $this->getMockBuilder('AdobeMarketingCloud\\ApiInterface')->getMock(); $client->setApi('report', $reportApiMock); $this->assertSame($reportApiMock, $client->getReportApi()); }