Files
php-flasher/tests/Prime/Stamp/ViewStampTest.php
T
2023-01-31 01:02:50 +01:00

27 lines
636 B
PHP

<?php
/*
* This file is part of the PHPFlasher package.
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
*/
namespace Flasher\Tests\Prime\Stamp;
use Flasher\Prime\Stamp\ViewStamp;
use Flasher\Tests\Prime\TestCase;
class ViewStampTest extends TestCase
{
/**
* @return void
*/
public function testViewStamp()
{
$stamp = new ViewStamp('template.html.twig');
$this->assertInstanceOf('Flasher\Prime\Stamp\StampInterface', $stamp);
$this->assertEquals('template.html.twig', $stamp->getView());
$this->assertEquals(array('view' => 'template.html.twig'), $stamp->toArray());
}
}