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