public function testInvalidAlias() { $this ->setExpectedException('InvalidArgumentException'); $this->fm ->set('@foo', $this ->getMock('Assetic\\Filter\\FilterInterface')); }