laravel, json, phpunit, cant test json response, unicode problems« Wróć do listy pytań
cant assert string
|
▲ ▼ |
maybe temp workaround? $response = $this->json('GET', '/data/ajax/search', ['term' => 'my_term']); $text = print_r(json_decode($response->getContent()),true); $this->assertStringContainsString('neeedle search',$text); |