/** * @covers OAuth\Common\Service\AbstractService::__construct * @covers OAuth\Common\Service\AbstractService::service */ public function testService() { $service = new Mock($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), ServiceFactory::construct()->getHttpTransporter(), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface'), null); $this->assertSame('Mock', $service->service()); }
/** * @covers OAuth\Common\Service\AbstractService::__construct * @covers OAuth\Common\Service\AbstractService::service */ public function testService() { $service = new Mock($this->getMock('\\OAuth\\Common\\Consumer\\CredentialsInterface'), $this->getMock('\\OAuth\\Common\\Http\\Client\\ClientInterface'), $this->getMock('\\OAuth\\Common\\Storage\\TokenStorageInterface')); $this->assertSame('Mock', $service->service()); }