public function testReplaceInvalidLeaf() { $this ->setExpectedException('InvalidArgumentException'); $coll = new AssetCollection(); $coll ->replaceLeaf(new StringAsset('foo'), new StringAsset('bar')); }