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 | |
parent | 411ea5bb6d0ecf32e6c989a99fac120502db9fe9 (diff) |
Added tests for base_path and config_path
Diffstat (limited to 'tests/Unit/Renderer')
-rw-r--r-- | tests/Unit/Renderer/HtmlEngineTest.php | 2 | ||||
-rw-r--r-- | tests/Unit/Renderer/RendererServiceProviderTest.php | 2 | ||||
-rw-r--r-- | tests/Unit/Renderer/RendererTest.php | 6 |
3 files changed, 7 insertions, 3 deletions
diff --git a/tests/Unit/Renderer/HtmlEngineTest.php b/tests/Unit/Renderer/HtmlEngineTest.php index 0b317b72..8c262932 100644 --- a/tests/Unit/Renderer/HtmlEngineTest.php +++ b/tests/Unit/Renderer/HtmlEngineTest.php @@ -1,6 +1,6 @@ <?php -namespace Engelsystem\Test\Config; +namespace Engelsystem\Test\Unit\Renderer; use Engelsystem\Renderer\HtmlEngine; use PHPUnit\Framework\TestCase; diff --git a/tests/Unit/Renderer/RendererServiceProviderTest.php b/tests/Unit/Renderer/RendererServiceProviderTest.php index f9044d8b..3826da7e 100644 --- a/tests/Unit/Renderer/RendererServiceProviderTest.php +++ b/tests/Unit/Renderer/RendererServiceProviderTest.php @@ -1,6 +1,6 @@ <?php -namespace Engelsystem\Test\Logger; +namespace Engelsystem\Test\Unit\Renderer; use Engelsystem\Renderer\EngineInterface; use Engelsystem\Renderer\HtmlEngine; 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()) |