diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-01-18 19:01:34 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-07 16:54:08 +0200 |
commit | 3c088292050982505726f5136ff4d0f1a918b879 (patch) | |
tree | 8d0e03947935ceb994ef6f8fe01af81bbb268b14 /tests/Unit/Http/ResponseServiceProviderTest.php | |
parent | 2f41b9e4418def9b69cf237312bc592364585025 (diff) |
Added Http\Response and Psr7{Request,Response}
Diffstat (limited to 'tests/Unit/Http/ResponseServiceProviderTest.php')
-rw-r--r-- | tests/Unit/Http/ResponseServiceProviderTest.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/Unit/Http/ResponseServiceProviderTest.php b/tests/Unit/Http/ResponseServiceProviderTest.php new file mode 100644 index 00000000..52e95714 --- /dev/null +++ b/tests/Unit/Http/ResponseServiceProviderTest.php @@ -0,0 +1,29 @@ +<?php + +namespace Engelsystem\Test\Unit\Http; + +use Engelsystem\Http\Response; +use Engelsystem\Http\ResponseServiceProvider; +use Engelsystem\Test\Unit\ServiceProviderTest; +use PHPUnit_Framework_MockObject_MockObject as MockObject; + +class ResponseServiceProviderTest extends ServiceProviderTest +{ + /** + * @covers \Engelsystem\Http\ResponseServiceProvider::register() + */ + public function testRegister() + { + /** @var MockObject|Response $response */ + $response = $this->getMockBuilder(Response::class) + ->getMock(); + + $app = $this->getApp(); + + $this->setExpects($app, 'make', [Response::class], $response); + $this->setExpects($app, 'instance', ['response', $response]); + + $serviceProvider = new ResponseServiceProvider($app); + $serviceProvider->register(); + } +} |