public function setUp()
 {
     parent::setUp();
     $_SERVER['HTTP_HOST'] = 'http://localhost';
     ThinkUpAuthAPIController::$owner = false;
 }
 /**
  * Gets an owner by email address
  * @param str Email address
  * @return Owner
  */
 protected static function getOwner($email)
 {
     if (self::$owner) {
         return self::$owner;
     } else {
         $owner_dao = DAOFactory::getDAO('OwnerDAO');
         self::$owner = $owner_dao->getByEmail($email);
         return self::$owner;
     }
 }