public function ClientTest::testGetContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\ClientTest::testGetContent()
File
- vendor/
symfony/ browser-kit/ Tests/ ClientTest.php, line 134
Class
Namespace
Symfony\Component\BrowserKit\TestsCode
public function testGetContent() {
$json = '{"jsonrpc":"2.0","method":"echo","id":7,"params":["Hello World"]}';
$client = new TestClient();
$client
->request('POST', 'http://example.com/jsonrpc', array(), array(), array(), $json);
$this
->assertEquals($json, $client
->getRequest()
->getContent());
}