--FILE--
<?php
$env = new MtHaml\Environment('twig', array('enable_escaper' => false, 'format' => 'xhtml'));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--
!!! invalid
--EXPECT--

--EXCEPTION--
PHPUnit_Framework_Error_Warning
No such doctype '!!! invalid' for the format 'xhtml'. Available doctypes for the current format are: '!!!', '!!! Strict', '!!! Frameset', '!!! 5', '!!! 1.1', '!!! Basic', '!!! Mobile', '!!! RDFa'
