File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ document::
264264 'Content-Type',
265265 'application/json'
266266 ),
267- '"Content-Type" header is NOT "application/json"' // optional message shown on failure
267+ 'the "Content-Type" header is "application/json"' // optional message shown on failure
268268 );
269269
270270 // Assert that the response content contains a string
@@ -273,9 +273,7 @@ document::
273273 $this->assertRegExp('/foo(bar)?/', $client->getResponse()->getContent());
274274
275275 // Assert that the response status code is 2xx
276- $this->assertTrue($client->getResponse()->isSuccessful(),
277- 'response status code is NOT 2xx'
278- );
276+ $this->assertTrue($client->getResponse()->isSuccessful(), 'response status is 2xx');
279277 // Assert that the response status code is 404
280278 $this->assertTrue($client->getResponse()->isNotFound());
281279 // Assert a specific 200 status code
@@ -287,7 +285,7 @@ document::
287285 // Assert that the response is a redirect to /demo/contact
288286 $this->assertTrue(
289287 $client->getResponse()->isRedirect('/demo/contact'),
290- 'response is NOT a redirect to /demo/contact'
288+ 'response is a redirect to /demo/contact'
291289 );
292290 // ...or simply check that the response is a redirect to any URL
293291 $this->assertTrue($client->getResponse()->isRedirect());
You can’t perform that action at this time.
0 commit comments