for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Asmaster\EquipTwig\Tests\Traits;
use Asmaster\EquipTwig\Traits\PayloadRenderTrait;
use Equip\Adr\PayloadInterface;
use PHPUnit_Framework_TestCase as TestCase;
class PayloadRenderTraitTest extends TestCase
{
use PayloadRenderTrait;
public function testPayload()
$this->assertInstanceOf(PayloadInterface::class, $this->payload());
}
public function testPayloadRender()
$template = 'test.html.twig';
$output = [
'body' => 'body'
];
$payload = $this->render($template, $output);
$this->assertEquals($output, $payload->getOutput());