Beispiel #1
0
 /**
  * Ensures that getIdByUsername() throws an exception given an empty argument
  *
  * @return void
  */
 public function testGetIdByUsernameExceptionUsernameEmpty()
 {
     $this->setExpectedException('Zend\\Service\\Flickr\\Exception\\InvalidArgumentException', 'supply a username');
     $this->flickr->getIdByUsername('0');
 }
Beispiel #2
0
 /**
  * Basic testing to ensure that getIdByUsername() works as expected
  *
  * @return void
  */
 public function testGetIdByUsernameBasic()
 {
     $userId = $this->flickr->getIdByUsername('darby.felton');
     $this->assertEquals('7414329@N07', $userId);
 }