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::
264
264
'Content-Type',
265
265
'application/json'
266
266
),
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
268
268
);
269
269
270
270
// Assert that the response content contains a string
@@ -273,9 +273,7 @@ document::
273
273
$this->assertRegExp('/foo(bar)?/', $client->getResponse()->getContent());
274
274
275
275
// 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');
279
277
// Assert that the response status code is 404
280
278
$this->assertTrue($client->getResponse()->isNotFound());
281
279
// Assert a specific 200 status code
@@ -287,7 +285,7 @@ document::
287
285
// Assert that the response is a redirect to /demo/contact
288
286
$this->assertTrue(
289
287
$client->getResponse()->isRedirect('/demo/contact'),
290
- 'response is NOT a redirect to /demo/contact'
288
+ 'response is a redirect to /demo/contact'
291
289
);
292
290
// ...or simply check that the response is a redirect to any URL
293
291
$this->assertTrue($client->getResponse()->isRedirect());
You can’t perform that action at this time.
0 commit comments