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