예제 #1
0
 /**
  * @expectedException Exception
  */
 public function testNoTokenFailure()
 {
     $client = new Profile(new SandBoxMode(), new AccessTokenBlackholeStorage('SOMETOKEN'));
     $client->setOptions(array('email' => 'odysseus'));
     $client->persist();
 }
예제 #2
0
 public function testInitialization()
 {
     $model = new Profile(new SandBoxMode(), new AccessTokenBlackholeStorage('SOMETOKEN'));
     $this->assertNotEmpty($model->getEndpoint());
 }
예제 #3
0
 public function testInitialization()
 {
     $model = new Profile('SOMETOKEN');
     $this->assertNotEmpty($model->getEndpoint());
 }