Change post unit test to json.

This commit is contained in:
Hans
2017-08-30 17:02:09 +08:00
committed by GitHub
parent 91dbd38824
commit 696a36d682

View File

@@ -47,7 +47,7 @@ class GuzzleTest extends PHPUnit_Framework_TestCase
$this->assertEquals("application/json", $headers["Content-Type"][0]);
$body = json_decode($response->getBody());
$this->assertEquals("Testing a POST request.", $body->form->{"X-Post-Test"});
$this->assertEquals("Testing a POST request.", $body->json->{"X-Post-Test"});
}
public function testPut()