for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sonata Project package.
*
* (c) Thomas Rabaix <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sonata\CacheBundle\Tests\Twig;
use PHPUnit\Framework\TestCase;
use Sonata\CacheBundle\Twig\TwigTemplate13;
use Sonata\CacheBundle\Twig\TwigTemplate14;
class TwigTemplateTest extends TestCase
{
public function testTemplateClassCanBeInstanciated()
$templateClass = class_exists(\Twig_Node_Body::class) ?
TwigTemplate14::class :
TwigTemplate13::class;
$template = $this->prophesize($templateClass);
$this->assertInstanceOf($templateClass, $template->reveal());
}