Skip to content

Commit e06013e

Browse files
committed
add test Response withStatus
1 parent 5360635 commit e06013e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/unit/ResponseTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,12 @@ public function test_errorUnprocessable_with_message()
263263
);
264264
}
265265

266+
public function test_withStatus()
267+
{
268+
$this->response->withStatus(200);
269+
$this->assertEquals(200, $this->response->getStatusCode());
270+
}
271+
266272
public function test_setStatusCode()
267273
{
268274
$responseReflect = new ReflectionClass(Response::class);

0 commit comments

Comments
 (0)