public function AssetFactoryTest::testInvalidFilter

File

drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Factory/AssetFactoryTest.php, line 118

Class

AssetFactoryTest

Namespace

Assetic\Test\Factory

Code

public function testInvalidFilter() {
  $this
    ->setExpectedException('InvalidArgumentException');
  $this->fm
    ->expects($this
    ->once())
    ->method('get')
    ->with('foo')
    ->will($this
    ->throwException(new \InvalidArgumentException()));
  $asset = $this->factory
    ->createAsset(array(), array(
    'foo',
  ));
}