StringStorageTest.php 801 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Templating\Tests\Storage;
  11. use Symfony\Component\Templating\Storage\StringStorage;
  12. class StringStorageTest extends \PHPUnit_Framework_TestCase
  13. {
  14. public function testGetContent()
  15. {
  16. $storage = new StringStorage('foo');
  17. $this->assertInstanceOf('Symfony\Component\Templating\Storage\Storage', $storage, 'StringStorage is an instance of Storage');
  18. $storage = new StringStorage('foo');
  19. $this->assertEquals('foo', $storage->getContent(), '->getContent() returns the content of the template');
  20. }
  21. }