getCredentialObject() public method

* Obtain Credential Object based on UserId provided.
public getCredentialObject ( $userId = null )
 /**
  * @test
  */
 public function testGetRestCredentialObject()
 {
     $cred = $this->object->getCredentialObject('acct3');
     $this->assertNotNull($cred);
     $this->assertArrayHasKey('clientId', $cred);
     $this->assertEquals($this->config['acct3.ClientId'], $cred['clientId']);
     $this->assertArrayHasKey('clientSecret', $cred);
     $this->assertEquals($this->config['acct3.ClientSecret'], $cred['clientSecret']);
 }
 /**
  * @test
  */
 public function testGetPlatformCredentialObject()
 {
     $cred = $this->object->getCredentialObject();
     $this->assertEquals('APP-80W284485P519543T', $cred->getApplicationId());
 }