phalApiHelperTestRunner = new PhalApi_Helper_TestRunner(); } protected function tearDown() { } /** * @group testGo */ public function testGo() { $url = 'demo.phalapi.net'; $params = array ( 'service' => 'InnerRunner.Go', ); $rs = PhalApi_Helper_TestRunner::go($url, $params); $this->assertTrue(is_array($rs)); } /** * @expectedException PhalApi_Exception */ public function testGoWrong() { PhalApi_Helper_TestRunner::go('', array()); } } class APi_InnerRunner extends PhalApi_Api { public function go() { return array('home'); } }