diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-10-31 14:23:23 +0100 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-10-31 14:30:37 +0100 |
commit | e15e86362585f5d00d118653232584ed0920e533 (patch) | |
tree | 0e3e4750e91b3deab2173334e2b7e9b05742d3fc /tests/Unit/Renderer/RendererTest.php | |
parent | 411ea5bb6d0ecf32e6c989a99fac120502db9fe9 (diff) |
Added tests for base_path and config_path
Diffstat (limited to 'tests/Unit/Renderer/RendererTest.php')
-rw-r--r-- | tests/Unit/Renderer/RendererTest.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Unit/Renderer/RendererTest.php b/tests/Unit/Renderer/RendererTest.php index b0238078..969ced7f 100644 --- a/tests/Unit/Renderer/RendererTest.php +++ b/tests/Unit/Renderer/RendererTest.php @@ -1,10 +1,11 @@ <?php -namespace Engelsystem\Test\Config; +namespace Engelsystem\Test\Unit\Renderer; use Engelsystem\Renderer\EngineInterface; use Engelsystem\Renderer\Renderer; use PHPUnit\Framework\TestCase; +use PHPUnit_Framework_MockObject_MockObject as MockObject; use Psr\Log\LoggerInterface; class RendererTest extends TestCase @@ -13,6 +14,7 @@ class RendererTest extends TestCase { $renderer = new Renderer(); + /** @var MockObject|EngineInterface $nullRenderer */ $nullRenderer = $this->getMockForAbstractClass(EngineInterface::class); $nullRenderer->expects($this->atLeastOnce()) @@ -20,6 +22,7 @@ class RendererTest extends TestCase ->willReturn(false); $renderer->addRenderer($nullRenderer); + /** @var MockObject|EngineInterface $mockRenderer */ $mockRenderer = $this->getMockForAbstractClass(EngineInterface::class); $mockRenderer->expects($this->atLeastOnce()) @@ -42,6 +45,7 @@ class RendererTest extends TestCase { $renderer = new Renderer(); + /** @var MockObject|LoggerInterface $loggerMock */ $loggerMock = $this->getMockForAbstractClass(LoggerInterface::class); $loggerMock ->expects($this->once()) |