FilesystemLoader: removed all temp folder logic from testConstructorWithProtocol test.

Conflicts:
	test/Mustache/Test/Loader/FilesystemLoaderTest.php
This commit is contained in:
mlebrun
2013-07-18 21:08:56 -07:00
committed by Justin Hileman
parent 65de52c7db
commit 339c94b2e1
@@ -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');