示例#1
0
 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);
 }
 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);
 }