From 000f701456d3c084b6585283f5aeba143576021b Mon Sep 17 00:00:00 2001 From: Eric Richer Date: Mon, 7 Sep 2020 10:24:19 -0400 Subject: [PATCH] Fixed eol to \n --- tests/LmcCorsTest/Service/CorsServiceTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/LmcCorsTest/Service/CorsServiceTest.php b/tests/LmcCorsTest/Service/CorsServiceTest.php index 8d506b5..4dc7597 100644 --- a/tests/LmcCorsTest/Service/CorsServiceTest.php +++ b/tests/LmcCorsTest/Service/CorsServiceTest.php @@ -18,6 +18,8 @@ namespace LmcCorsTest\Service; +use LmcCors\Exception\DisallowedOriginException; +use LmcCors\Exception\InvalidOriginException; use PHPUnit\Framework\TestCase as TestCase; use Laminas\Http\Response as HttpResponse; use Laminas\Http\Request as HttpRequest; @@ -289,7 +291,7 @@ public function testRefuseNormalCorsRequestIfUnauthorized() $request->getHeaders()->addHeaderLine('Origin', 'http://unauthorized.com'); - $this->expectException(\LmcCors\Exception\DisallowedOriginException::class); + $this->expectException(DisallowedOriginException::class); $this->expectExceptionMessage('The origin "http://unauthorized.com" is not authorized'); $this->corsService->populateCorsResponse($request, $response); @@ -424,7 +426,7 @@ public function testDoesNotCrashApplicationOnInvalidOriginValue() $request = new HttpRequest(); $request->setUri('https://example.com'); $request->getHeaders()->addHeaderLine('Origin', 'file:'); - $this->expectException(\LmcCors\Exception\InvalidOriginException::class); + $this->expectException(InvalidOriginException::class); $this->corsService->isCorsRequest($request); } @@ -472,7 +474,7 @@ public function testCanPopulateNormalCorsRequestWithRouteMatchRewriteException() $request->getHeaders()->addHeaderLine('Origin', 'http://example.com'); - $this->expectException(\LmcCors\Exception\DisallowedOriginException::class); + $this->expectException(DisallowedOriginException::class); $this->corsService->populateCorsResponse($request, $response, $routeMatch); } }