public function getCredentials() { return base64_encode(sprintf('%s:%s', $this->user, $this->password)); }
public function testBearerAuth() { $token = base64_encode('user:password'); $auth = new BasicAuth('user', 'password'); $this->assertSame($token, $auth->getCredentials()); $this->assertSame('Basic', $auth->getAuthType()); }