From 339c94b2e1598d5986dfc42302c2683b040d7545 Mon Sep 17 00:00:00 2001 From: mlebrun Date: Thu, 18 Jul 2013 14:26:23 -0400 Subject: [PATCH] FilesystemLoader: removed all temp folder logic from testConstructorWithProtocol test. Conflicts: test/Mustache/Test/Loader/FilesystemLoaderTest.php --- test/Mustache/Test/Loader/FilesystemLoaderTest.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/Mustache/Test/Loader/FilesystemLoaderTest.php b/test/Mustache/Test/Loader/FilesystemLoaderTest.php index 3c7b2f4..3aa83fd 100644 --- a/test/Mustache/Test/Loader/FilesystemLoaderTest.php +++ b/test/Mustache/Test/Loader/FilesystemLoaderTest.php @@ -29,6 +29,15 @@ class Mustache_Test_Loader_FilesystemLoaderTest extends PHPUnit_Framework_TestCa $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() { $baseDir = realpath(dirname(__FILE__).'/../../../fixtures/templates');