public function testReplaceRecursiveLeaf() { $coll = new AssetCollection(array( new AssetCollection(array( $leaf = new StringAsset('asdf'), )), )); $this ->assertTrue($coll ->replaceLeaf($leaf, new StringAsset('foo'))); }