public function testListenerPriority()
{
$eventDispatcher = $this->twital->getEventDispatcher();
$preLoad = $eventDispatcher->getListeners('compiler.pre_load');
$this->assertEquals(array(new FixTwigExpressionSubscriber(), 'addPlaceholder'), reset($preLoad));
$postDump = $eventDispatcher->getListeners('compiler.post_dump');
$this->assertEquals(array(new FixTwigExpressionSubscriber(), 'removePlaceholder'), end($postDump));
}