public function testSnippetsWorkWithBadHtml()
{
$this->markTestIncomplete('Update required');
$locations = [Target::START_OF_HEAD, Target::START_OF_BODY, Target::END_OF_BODY, Target::END_OF_HTML, Target::AFTER_META, Target::AFTER_CSS, Target::BEFORE_CSS, Target::BEFORE_JS, Target::AFTER_CSS, Target::AFTER_JS, 'madeuplocation'];
foreach ($locations as $location) {
$app = $this->getApp();
$template = '<invalid></invalid>';
$snip = '<meta name="test-snippet" />';
$app['extensions']->insertSnippet($location, $snip);
$html = $app['extensions']->processSnippetQueue($template);
$this->assertEquals($template . $snip . PHP_EOL, $html);
}
}