public function testCheckWithRightSign()
 {
     $data = array('service' => 'PhalApi_Api_Impl.Add', 'left' => 1, 'right' => 1, 'sign' => 'd5c2ea888a6390de5210b9496a1b787a');
     DI()->request = new PhalApi_Request($data);
     $api = new PhalApi_Api_Impl();
     $api->init();
     $rs = $api->add();
     $this->assertEquals(2, $rs);
 }
 public function testApiImpl()
 {
     $data = array();
     $data['service'] = 'Impl.Add';
     $data['version'] = '1.1.0';
     $data['left'] = '6';
     $data['right'] = '1';
     DI()->request = new PhalApi_Request($data);
     DI()->filter = 'PhalApi_Filter_Impl';
     $impl = new PhalApi_Api_Impl();
     $impl->init();
     $rs = $impl->add();
     $this->assertEquals(7, $rs);
 }