Added Slim\Views namespace extension
This commit is contained in:
15
tests/BladeTest.php
Normal file
15
tests/BladeTest.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once 'BladeTests.php';
|
||||
|
||||
class BladeTest extends BladeTests
|
||||
{
|
||||
public function testRender(): void
|
||||
{
|
||||
$response = $this->getResponse();
|
||||
|
||||
$view = new View\Implement\Blade($this->templatesFolder, $this->cacheFolder);
|
||||
|
||||
$result = $view->render($response, $this->templateName);
|
||||
$this->assertEquals($this->template, $result->getBody()->getContents());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user