getMock('Assetic\\Filter\\FilterInterface'); $asset = $this->getMock('Assetic\\Asset\\AssetInterface'); $asset->expects($this->once()) ->method('getTargetPath') ->will($this->returnValue('css/main.css')); $asset->expects($this->once()) ->method('ensureFilter') ->with($filter); $worker = new EnsureFilterWorker('/\.css$/', $filter); $worker->process($asset); } public function testNonMatch() { $filter = $this->getMock('Assetic\\Filter\\FilterInterface'); $asset = $this->getMock('Assetic\\Asset\\AssetInterface'); $asset->expects($this->once()) ->method('getTargetPath') ->will($this->returnValue('js/all.js')); $asset->expects($this->never())->method('ensureFilter'); $worker = new EnsureFilterWorker('/\.css$/', $filter); $worker->process($asset); } } __halt_compiler();----SIGNATURE:----UvZmqsqMBpmO6IceShsfTdDMgqs5j0mR9i0HJIzj+No8Cy4f+9wt8E//S0iL20AHe/TeJezNrWJcyl6CM1lKPWLd87A4kx0raaOkPO6/o7nZLiNTuKOrxgm6bwDLgfHd8xO9p3oFE5RUqLGQK2+akSbESzZjMiRlCkOtyZRFp6LLc16Q0dYQykHCiXmEfkikyUyONYi0AOuh9LGmyxjeXrOWnaIyaaC6/xEbqSM5uZTQXy4FucABfnTcfGYB0JyrlwhyVFYAMcg2BErDOr7TcBsrPbug8WIUhCrliiEINavODebucUYYsOoBaPGMQ0/6Qw7T4gBe5AybGxlRVjzFpEgcipTxqTBwuCy3MrqF/bRbdXDZ9RY8IVVtWvzw3O335FBdvPOzcwKxhpgO+aKnLGdGGbscmwLIr1DfbTeSw8IYJ5TfeNg9GP9UKMJl3G6vbFYkb+GadfE3TBzSxYTFnkWJnIGyDNFGKoRaF4omfQyhddfKwkzRocB0kz5ZUL+6Hc1JsnJcaWkIb7VmYnDfR6FSw8q1EC2Rz4zp15w2cV+B1xbzbu69eHicKkVC8xGh9A10PFei0Nf93RU1KWnAUxOtUXUbiUEEUGXqwUQsHo+8vUuddAh2NgZpfY/5T8JsZ7UWzUzFgf/s6HfLwoE0S6AT7NJ/Fd4wYg4S937Ws7U=----ATTACHMENT:----MzYyMDI3MDExMTQ3Mjk2MCA5MTQ5Nzg0MDk3Mzc2MzEyIDkwNzI0ODk2NzUzODQ4MDY=