public function testMixture() { $asset = $this->getMock('Assetic\\Asset\\AssetInterface'); $this->am->expects($this->any())->method('get')->with('foo')->will($this->returnValue($asset)); $xml = $this->renderXml('mixture.twig'); $this->assertEquals(1, count($xml->asset)); $this->assertEquals('packed/mixture', (string) $xml->asset['url']); }