1313 */
1414final class StatusTest extends TestCase
1515{
16- private function descriptionToStatus (string $ description ): Status
16+ private static function descriptionToStatus (string $ description ): Status
1717 {
1818 $ description = strtoupper (
19- str_replace ([' ' , '- ' ], '_ ' , $ description ),
19+ str_replace (" ' " , '' , str_replace ( [' ' , '- ' ], '_ ' , $ description) ),
2020 );
2121
2222 return Status::{$ description };
@@ -28,7 +28,7 @@ public function test_status_code(int $code, string $description): void
2828 $ status = Status::code ($ code );
2929
3030 $ this ->assertSame (
31- $ this -> descriptionToStatus ($ description ),
31+ self :: descriptionToStatus ($ description ),
3232 $ status ,
3333 );
3434
@@ -100,6 +100,7 @@ public static function provide_status_code_cases(): iterable
100100 [303 , 'See Other ' ],
101101 [304 , 'Not Modified ' ],
102102 [305 , 'Use Proxy ' ],
103+ [306 , 'Unused ' ],
103104 [307 , 'Temporary Redirect ' ],
104105 [308 , 'Permanent Redirect ' ],
105106
@@ -121,6 +122,7 @@ public static function provide_status_code_cases(): iterable
121122 [415 , 'Unsupported Media Type ' ],
122123 [416 , 'Range Not Satisfiable ' ],
123124 [417 , 'Expectation Failed ' ],
125+ [418 , "I'm a teapot " ],
124126 [421 , 'Misdirected Request ' ],
125127 [422 , 'Unprocessable Content ' ],
126128 [423 , 'Locked ' ],
0 commit comments