* a bunch of small changes, courtesy of styleci * update dates in file headers * add file headers to files that are missing them
27 lines
648 B
PHP
27 lines
648 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Mustache.php.
|
|
*
|
|
* (c) 2010-2016 Justin Hileman
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
|
|
/**
|
|
* @group unit
|
|
*/
|
|
class Mustache_Test_Loader_StringLoaderTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function testLoadTemplates()
|
|
{
|
|
$loader = new Mustache_Loader_StringLoader();
|
|
|
|
$this->assertEquals('foo', $loader->load('foo'));
|
|
$this->assertEquals('{{ bar }}', $loader->load('{{ bar }}'));
|
|
$this->assertEquals("\n{{! comment }}\n", $loader->load("\n{{! comment }}\n"));
|
|
}
|
|
}
|