public function AssetCollectionTest::testDumpDedupByStrictEquality

File

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

Class

AssetCollectionTest

Namespace

Assetic\Test\Asset

Code

public function testDumpDedupByStrictEquality() {
  $asset = new StringAsset('foo');
  $coll = new AssetCollection(array(
    $asset,
    $asset,
  ));
  $coll
    ->load();
  $this
    ->assertEquals('foo', $coll
    ->dump(), '->dump() detects duplicate assets based on strict equality');
}