055b6e4d6e
* better separation of concerns * made TwigBundle independant of the PHP Engine from FrameworkBundle (WIP) * removed one layer of abstraction in the Templating component (renderers) * made it easier to create a new Engine for any templating library * made engines lazy-loaded (PHP engine for instance is not started if you only use Twig) * reduces memory footprint (if you only use one engine) * reduces size of compiled classes.php cache file
32 lines
751 B
PHP
32 lines
751 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Symfony package.
|
|
*
|
|
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Symfony\Tests\Component\Templating\Storage;
|
|
|
|
use Symfony\Component\Templating\Storage\Storage;
|
|
use Symfony\Component\Templating\Renderer\PhpRenderer;
|
|
|
|
class StorageTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
public function testMagicToString()
|
|
{
|
|
$storage = new TestStorage('foo');
|
|
$this->assertEquals('foo', (string) $storage, '__toString() returns the template name');
|
|
}
|
|
}
|
|
|
|
class TestStorage extends Storage
|
|
{
|
|
public function getContent()
|
|
{
|
|
}
|
|
}
|