diff --git a/src/Mustache/Source/FilesystemSource.php b/src/Mustache/Source/FilesystemSource.php index 1284ac7..270f584 100644 --- a/src/Mustache/Source/FilesystemSource.php +++ b/src/Mustache/Source/FilesystemSource.php @@ -38,7 +38,7 @@ class Mustache_Source_FilesystemSource implements Mustache_Source /** * Get the Source key (used to generate the compiled class name). * - * @throws RuntimeException when a source file cannot be read + * @throws Mustache_Exception_RuntimeException when a source file cannot be read * * @return string */ @@ -54,7 +54,7 @@ class Mustache_Source_FilesystemSource implements Mustache_Source } if ($this->stat === false) { - throw new RuntimeException(sprintf('Failed to read source file "%s".', $this->fileName)); + throw new Mustache_Exception_RuntimeException(sprintf('Failed to read source file "%s".', $this->fileName)); } foreach ($this->statProps as $prop) { diff --git a/test/Mustache/Test/Source/FilesystemSourceTest.php b/test/Mustache/Test/Source/FilesystemSourceTest.php index a636ffe..3d3b311 100644 --- a/test/Mustache/Test/Source/FilesystemSourceTest.php +++ b/test/Mustache/Test/Source/FilesystemSourceTest.php @@ -15,7 +15,7 @@ class Mustache_Test_Source_FilesystemSourceTest extends PHPUnit_Framework_TestCase { /** - * @expectedException RuntimeException + * @expectedException Mustache_Exception_RuntimeException */ public function testMissingTemplateThrowsException() {