createMock(LtiProvider::class); $ltiProviderMock->method('getKey')->willReturn('kkk1'); $ltiProviderMock->method('getSecret')->willReturn('sss1'); $consumer = new LisOAuthConsumer($ltiProviderMock, 'clb_url'); $this->assertInstanceOf(OAuthConsumer::class, $consumer); $this->assertSame('kkk1', $consumer->key); $this->assertSame('sss1', $consumer->secret); $this->assertSame('clb_url', $consumer->callback_url); } }