public function testRecursiveDeduplication() {
$asset = $this
->getMock('Assetic\\Asset\\AssetInterface');
$coll3 = new AssetCollection(array(
$asset,
$asset,
));
$coll2 = new AssetCollection(array(
$asset,
$coll3,
));
$coll1 = new AssetCollection(array(
$asset,
$coll2,
));
$i = 0;
foreach ($coll1 as $a) {
$i++;
}
$this
->assertEquals(1, $i, 'deduplication is performed recursively');
}