[symfony] webTest get response
https://stackoverflow.com/questions/34009015/symfony-web-test-case-json
$client->request('GET', '/my-url');
$response = $client->getResponse();
$this->assertSame(200, $response->getStatusCode());
$responseData = json_decode($response->getContent(), true);
// etc...
留言
張貼留言