Exemplo n.º 1
0
 public function testIsset()
 {
     $identity = Identity::getInstance(array(Identity::KLOUT_ID => 123321));
     if (isset($identity[Identity::KLOUT_ID])) {
         $this->assertTrue(true);
     }
 }
Exemplo n.º 2
0
 public function testGetIdentityWithIdentity()
 {
     $consumer = new Consumer($this->getClientWithAllCalls(Identity::getInstance(array(Identity::KLOUT_ID => 123321, 'influence' => array('myInfluencers' => array('entity' => array('payload' => array())))))), 'secret_key_here');
     $identity = $consumer->getIdentity(Identity::getInstance(array(Identity::KLOUT_ID => 123321)));
     $this->assertEquals('123321', $identity->getId(), 'Identity OK');
 }