public function testBearerAuth() { $token = base64_encode('this is secret'); $auth = new BearerAuth($token); $this->assertSame($token, $auth->getCredentials()); $this->assertSame('Bearer', $auth->getAuthType()); }