public function testGetContent()
 {
     $storage = new StringStorage('foo');
     $this->assertTrue($storage instanceof Storage, 'StringStorage is an instance of Storage');
     $storage = new StringStorage('foo');
     $this->assertEquals($storage->getContent(), 'foo', '->getContent() returns the content of the template');
 }
 public function testGetContent()
 {
     $storage = new StringStorage('foo');
     $this->assertInstanceOf('Symfony\\Components\\Templating\\Storage\\Storage', $storage, 'StringStorage is an instance of Storage');
     $storage = new StringStorage('foo');
     $this->assertEquals('foo', $storage->getContent(), '->getContent() returns the content of the template');
 }
<?php

/*
 * This file is part of the symfony package.
 *
 * (c) Fabien Potencier <*****@*****.**>
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

require_once __DIR__.'/../../../../bootstrap.php';

use Symfony\Components\Templating\Storage\Storage;
use Symfony\Components\Templating\Storage\StringStorage;

$t = new LimeTest(2);

$storage = new StringStorage('foo');
$t->ok($storage instanceof Storage, 'StringStorage is an instance of Storage');


// ->getContent()
$t->diag('->getContent()');
$storage = new StringStorage('foo');
$t->is($storage->getContent(), 'foo', '->getContent() returns the content of the template');