コード例 #1
0
ファイル: restful_requests.php プロジェクト: bermi/akelos
 public function testPutPersonOnTheServerViaWwwForm()
 {
     $person = array('person' => array('name' => 'Steve'));
     $Http = new AkHttpClient();
     $options['params'] = $person;
     $result = $Http->put($this->_test_script . 'people/1', $options);
     $this->assertEqual('Steve', $result);
 }
コード例 #2
0
 function testPutPersonOnTheServerViaWwwForm()
 {
     $person = array('person' => array('name' => 'Steve'));
     $Http = new AkHttpClient();
     $options['params'] = $person;
     $result = $Http->put(AK_TESTING_URL . '/person/1', $options);
     $this->assertEquals('Steve', $result);
 }