Skip to content

Commit 98967bf

Browse files
committed
Revert "Remove not existing response constant"
This reverts commit b38c36c. 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 for the documentation of the `2.7` branch.
1 parent e7f7391 commit 98967bf

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)