public function testDebug() {
$filter = $this
->getMock('Assetic\\Filter\\FilterInterface');
$this->fm
->expects($this
->once())
->method('get')
->with('bar')
->will($this
->returnValue($filter));
$xml = $this
->renderXml('debug.twig');
$this
->assertEquals(2, count($xml->asset));
$this
->assertStringStartsWith('css/packed_', (string) $xml->asset[0]['url']);
$this
->assertStringEndsWith('.css', (string) $xml->asset[0]['url']);
}