public function test_http_curl_post_request_returns_correct_response() { $expected_content = "key_1 => value 1\ntest_another_key => value 2\n"; $http = new PHP_Merchant_HTTP_CURL(); $actual_content = $http->post('http://garyc40.com/test-post.php', array('key 1' => 'value 1', 'test another key' => 'value 2')); $this->assertEqual($expected_content, $actual_content); }
public function test_http_curl_post_request_returns_correct_response() { $expected_content = "key_1 => value 1\ntest_another_key => value 2\n"; $http = new PHP_Merchant_HTTP_CURL(); $actual_content = $http->post('https://raw.githubusercontent.com/wp-e-commerce/Science-Repository/master/post', array('key 1' => 'value 1', 'test another key' => 'value 2')); $this->assertEqual($expected_content, $actual_content); }
public function parse_args($args) { return parent::parse_args($args); }