Skip to content

Commit

Permalink
Fixed eol to \n
Browse files Browse the repository at this point in the history
  • Loading branch information
visto9259 committed Sep 7, 2020
1 parent d43821f commit 000f701
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/LmcCorsTest/Service/CorsServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}
}

0 comments on commit 000f701

Please sign in to comment.