public function AssetReferenceTest::testDump

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetReferenceTest.php, line 111

Class

AssetReferenceTest

Namespace

Assetic\Test\Asset

Code

public function testDump() {
  $filter = $this
    ->getMock('Assetic\\Filter\\FilterInterface');
  $asset = $this
    ->getMock('Assetic\\Asset\\AssetInterface');
  $this->am
    ->expects($this
    ->exactly(2))
    ->method('get')
    ->with('foo')
    ->will($this
    ->returnValue($asset));
  $asset
    ->expects($this
    ->once())
    ->method('dump')
    ->with($filter);
  $this->ref
    ->dump($filter);
}