Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Анатолий Нехай committed Apr 17, 2022
1 parent 21722d6 commit ac98377
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions tests/FactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,58 +30,46 @@ class FactoryTest extends TestCase
*/
public function testRequestFactory() : void
{
$factory = new RequestFactory();

$this->assertInstanceOf(RequestFactoryInterface::class, $factory);
$this->assertInstanceOf(RequestFactoryInterface::class, new RequestFactory());
}

/**
* @return void
*/
public function testResponseFactory() : void
{
$factory = new ResponseFactory();

$this->assertInstanceOf(ResponseFactoryInterface::class, $factory);
$this->assertInstanceOf(ResponseFactoryInterface::class, new ResponseFactory());
}

/**
* @return void
*/
public function testServerRequestFactory() : void
{
$factory = new ServerRequestFactory();

$this->assertInstanceOf(ServerRequestFactoryInterface::class, $factory);
$this->assertInstanceOf(ServerRequestFactoryInterface::class, new ServerRequestFactory());
}

/**
* @return void
*/
public function testStreamFactory() : void
{
$factory = new StreamFactory();

$this->assertInstanceOf(StreamFactoryInterface::class, $factory);
$this->assertInstanceOf(StreamFactoryInterface::class, new StreamFactory());
}

/**
* @return void
*/
public function testUploadedFileFactory() : void
{
$factory = new UploadedFileFactory();

$this->assertInstanceOf(UploadedFileFactoryInterface::class, $factory);
$this->assertInstanceOf(UploadedFileFactoryInterface::class, new UploadedFileFactory());
}

/**
* @return void
*/
public function testUriFactory() : void
{
$factory = new UriFactory();

$this->assertInstanceOf(UriFactoryInterface::class, $factory);
$this->assertInstanceOf(UriFactoryInterface::class, new UriFactory());
}
}

0 comments on commit ac98377

Please sign in to comment.