Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit dfccb48

Browse files
committed
Updates test to use ServerRequestInterface as service names instead of constant.
1 parent 8adfd06 commit dfccb48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/ConfigProviderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
use PHPUnit\Framework\TestCase;
1313
use Psr\Http\Message\ResponseInterface;
14+
use Psr\Http\Message\ServerRequestInterface;
1415
use Psr\Http\Message\StreamInterface;
1516
use Zend\Expressive\Application;
1617
use Zend\Expressive\ApplicationPipeline;
@@ -33,7 +34,6 @@
3334
use const Zend\Expressive\NOT_FOUND_MIDDLEWARE;
3435
use const Zend\Expressive\ROUTE_MIDDLEWARE;
3536
use const Zend\Expressive\SERVER_REQUEST_ERROR_RESPONSE_GENERATOR;
36-
use const Zend\Expressive\SERVER_REQUEST_FACTORY;
3737

3838
class ConfigProviderTest extends TestCase
3939
{
@@ -72,8 +72,8 @@ public function testProviderDefinesExpectedFactoryServices()
7272
$this->assertArrayHasKey(NotFoundHandler::class, $factories);
7373
$this->assertArrayHasKey(RequestHandlerRunner::class, $factories);
7474
$this->assertArrayHasKey(ResponseInterface::class, $factories);
75+
$this->assertArrayHasKey(ServerRequestInterface::class, $factories);
7576
$this->assertArrayHasKey(SERVER_REQUEST_ERROR_RESPONSE_GENERATOR, $factories);
76-
$this->assertArrayHasKey(SERVER_REQUEST_FACTORY, $factories);
7777
$this->assertArrayHasKey(StreamInterface::class, $factories);
7878
}
7979

0 commit comments

Comments
 (0)