FilesystemLoader: removed all temp folder logic from testConstructorWithProtocol test.
Conflicts: test/Mustache/Test/Loader/FilesystemLoaderTest.php
This commit is contained in:
@@ -29,6 +29,15 @@ class Mustache_Test_Loader_FilesystemLoaderTest extends PHPUnit_Framework_TestCa
|
|||||||
$this->assertEquals('one contents', $loader->load('one'));
|
$this->assertEquals('one contents', $loader->load('one'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testConstructorWithProtocol()
|
||||||
|
{
|
||||||
|
$baseDir = realpath(dirname(__FILE__).'/../../../fixtures/templates');
|
||||||
|
|
||||||
|
$loader = new Mustache_Loader_FilesystemLoader('file://' . $baseDir, array('extension' => '.ms'));
|
||||||
|
$this->assertEquals('alpha contents', $loader->load('alpha'));
|
||||||
|
$this->assertEquals('beta contents', $loader->load('beta.ms'));
|
||||||
|
}
|
||||||
|
|
||||||
public function testLoadTemplates()
|
public function testLoadTemplates()
|
||||||
{
|
{
|
||||||
$baseDir = realpath(dirname(__FILE__).'/../../../fixtures/templates');
|
$baseDir = realpath(dirname(__FILE__).'/../../../fixtures/templates');
|
||||||
|
|||||||
Reference in New Issue
Block a user