/**
  * @group testGetUserInfo
  */
 public function testGetUserInfo()
 {
     //Step 1. 构建请求URL
     $url = 'service=User_User_Info.getUserInfo&other_user_id=1';
     //Step 2. 执行请求
     $rs = PhalApiTestRunner::go($url);
     //var_dump($rs);
     //Step 3. 验证
     $this->assertNotEmpty($rs);
     $this->assertArrayHasKey('code', $rs);
     $this->assertArrayHasKey('info', $rs);
 }
 /**
  * @group testQq
  */
 public function testQq()
 {
     //Step 1. 构建请求URL
     $url = 'service=User_User_Login.qq&qq_openid=qq_123456&qq_token=ASDF&qq_expires_in=130000000&name=qqName&avatar=http://dev.phalapi.com/no_avatar.png';
     //Step 2. 执行请求
     $rs = PhalApiTestRunner::go($url);
     //var_dump($rs);
     //Step 3. 验证
     $this->assertNotEmpty($rs);
     $this->assertArrayHasKey('code', $rs);
     $this->assertArrayHasKey('user_id', $rs['info']);
     $this->assertArrayHasKey('token', $rs['info']);
     $this->assertArrayHasKey('is_new', $rs['info']);
     $this->assertEquals(0, $rs['info']['is_new']);
 }