You are here

public function ClientTest::testGetContent in Zircon Profile 8

Same name and namespace in other branches
  1. 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

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

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());
}