diff --git a/tests/Exception/OAuthExceptionTest.php b/tests/Exception/OAuthExceptionTest.php new file mode 100644 index 00000000..be2d0e92 --- /dev/null +++ b/tests/Exception/OAuthExceptionTest.php @@ -0,0 +1,25 @@ +httpStatusCode = 400; + $this->assertSame($exception->getHttpHeaders(), ['HTTP/1.1 400 Bad Request']); + + $exception->httpStatusCode = 401; + $this->assertSame($exception->getHttpHeaders(), ['HTTP/1.1 401 Unauthorized']); + + $exception->httpStatusCode = 500; + $this->assertSame($exception->getHttpHeaders(), ['HTTP/1.1 500 Internal Server Error']); + + $exception->httpStatusCode = 501; + $this->assertSame($exception->getHttpHeaders(), ['HTTP/1.1 501 Not Implemented']); + } +}