Skip to content

Commit aa527db

Browse files
committed
Document accepted()
1 parent 362665a commit aa527db

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ Creation:
139139

140140
* `Response::ok()` - 200 OK
141141
* `Response::created([string $location])` - 201 Created, optionally with a *Location* header
142+
* `Response::accepted()` - 202 Accepted
142143
* `Response::noContent()` - 204 No content
143144
* `Response::see(string $location)` - 302 Found and a *Location* header
144145
* `Response::notModified()` - 304 Not modified

src/test/php/web/rest/unittest/ResponseTest.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function created_with_location_and_arguments() {
4242
#[Test]
4343
public function accepted() {
4444
Assert::equals(
45-
['status' => 201, 'headers' => [], 'body' => null],
45+
['status' => 202, 'headers' => [], 'body' => null],
4646
Response::accepted()->export()
4747
);
4848
}

0 commit comments

Comments
 (0)