Added Slim\Views namespace extension

This commit is contained in:
2025-09-29 13:37:26 -03:00
parent 6f34ae24ec
commit 401dae9e07
7 changed files with 107 additions and 21 deletions

15
tests/BladeTest.php Normal file
View 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());
}
}