public function testSnippetsWorkWithBadHtml()
{
$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['asset.queue.snippet']->add($this->getSnippet($location, $snip));
$response = new Response($template);
$app['asset.queue.snippet']->process($this->getRequest(), $response);
//$html = $app['asset.queue.snippet']->process($template);
$this->assertEquals($template . $snip . PHP_EOL, $response->getContent());
}
}