Beispiel #1
0
 /** Based on a username, get a simplified Habbo object
  *
  * @param string $identifier
  * @return Entities\Habbo
  */
 public function getHabbo($identifier, $hhid = false)
 {
     if ($hhid) {
         return $this->parser->parseHabbo($identifier, 'hhid');
     } else {
         return $this->parser->parseHabbo($identifier);
     }
 }
Beispiel #2
0
 /** Based on a username, get a simplified Habbo object
  *
  * @param string $identifier
  * @param bool $useUniqueId
  * @return Habbo
  */
 public function getHabbo($identifier, $useUniqueId = false)
 {
     return $this->parser->parseHabbo($identifier, $useUniqueId);
 }
 /**
  * @expectedException Exception
  */
 public function testErrorHabbo()
 {
     // Replace parseHabbo with static data
     $this->habboParserMock->expects($this->once())->method('_callUrl')->will($this->throwException(new Exception('Some kind of exception')));
     $this->habboParserMock->parseHabbo('someHabboNameThatDoesNotExist');
 }