public function AssetCollectionTest::testReplaceRecursiveLeaf

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetCollectionTest.php, line 315

Class

AssetCollectionTest

Namespace

Assetic\Test\Asset

Code

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