From ac983773e1ec10bbfd2354e548b6fa96c09ac587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B0=D1=82=D0=BE=D0=BB=D0=B8=D0=B9=20=D0=9D?= =?UTF-8?q?=D0=B5=D1=85=D0=B0=D0=B9?= Date: Mon, 18 Apr 2022 04:35:56 +0500 Subject: [PATCH] minor changes --- tests/FactoryTest.php | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php index 70f30a9..47d2b26 100644 --- a/tests/FactoryTest.php +++ b/tests/FactoryTest.php @@ -30,9 +30,7 @@ class FactoryTest extends TestCase */ public function testRequestFactory() : void { - $factory = new RequestFactory(); - - $this->assertInstanceOf(RequestFactoryInterface::class, $factory); + $this->assertInstanceOf(RequestFactoryInterface::class, new RequestFactory()); } /** @@ -40,9 +38,7 @@ public function testRequestFactory() : void */ public function testResponseFactory() : void { - $factory = new ResponseFactory(); - - $this->assertInstanceOf(ResponseFactoryInterface::class, $factory); + $this->assertInstanceOf(ResponseFactoryInterface::class, new ResponseFactory()); } /** @@ -50,9 +46,7 @@ public function testResponseFactory() : void */ public function testServerRequestFactory() : void { - $factory = new ServerRequestFactory(); - - $this->assertInstanceOf(ServerRequestFactoryInterface::class, $factory); + $this->assertInstanceOf(ServerRequestFactoryInterface::class, new ServerRequestFactory()); } /** @@ -60,9 +54,7 @@ public function testServerRequestFactory() : void */ public function testStreamFactory() : void { - $factory = new StreamFactory(); - - $this->assertInstanceOf(StreamFactoryInterface::class, $factory); + $this->assertInstanceOf(StreamFactoryInterface::class, new StreamFactory()); } /** @@ -70,9 +62,7 @@ public function testStreamFactory() : void */ public function testUploadedFileFactory() : void { - $factory = new UploadedFileFactory(); - - $this->assertInstanceOf(UploadedFileFactoryInterface::class, $factory); + $this->assertInstanceOf(UploadedFileFactoryInterface::class, new UploadedFileFactory()); } /** @@ -80,8 +70,6 @@ public function testUploadedFileFactory() : void */ public function testUriFactory() : void { - $factory = new UriFactory(); - - $this->assertInstanceOf(UriFactoryInterface::class, $factory); + $this->assertInstanceOf(UriFactoryInterface::class, new UriFactory()); } }