for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Spiral\Tests\Framework\Views;
use Spiral\Tests\Framework\BaseTest;
use Spiral\Views\ViewsInterface;
class RenderTest extends BaseTest
{
public function testWithNullVariable(): void
$app = $this->makeApp();
$out = $app->get(ViewsInterface::class)->render('stempler:null', ['var' => null, 'users' => []]);
// any exceptions threw
$this->assertIsString($out);
}
public function testWithNullVariableExression(): void
$out = $app->get(ViewsInterface::class)->render('stempler:null', ['var' => null, 'users' => ['foo']]);