Improve Mustache exception types, catchability.

* Subclass common exception types (runtime, logic, invalid argument).
 * Add new "unknown x" exceptions for filters, helpers and templates.
 * Make all Mustache exceptions implement Mustache_Exception interface… Gotta catch 'em all!
This commit is contained in:
Justin Hileman
2013-01-20 10:35:55 -08:00
parent 5e69e63ffb
commit 0436c59477
22 changed files with 250 additions and 48 deletions
@@ -67,7 +67,7 @@ class Mustache_Test_FiveThree_Functional_FiltersTest extends PHPUnit_Framework_T
}
/**
* @expectedException UnexpectedValueException
* @expectedException Mustache_Exception_UnknownFilterException
* @dataProvider getBrokenPipes
*/
public function testThrowsExceptionForBrokenPipes($tpl, $data)