Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit98967bf

Browse files
committed
Revert "Remove not existing response constant"
This reverts commitb38c36c.The `Response::HTTP_OK` constant was added in Symfony 2.4. Thus,removing it (as done in#5771 for the `2.3` branch) must be reverted forthe documentation of the `2.7` branch.
1 parente7f7391 commit98967bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎book/testing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ document::
277277
$this->assertTrue($client->getResponse()->isNotFound());
278278
// Assert a specific 200 status code
279279
$this->assertEquals(
280-
200,
280+
200, // or Symfony\Component\HttpFoundation\Response::HTTP_OK
281281
$client->getResponse()->getStatusCode()
282282
);
283283

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp