@dataProvider getJavascriptInputs
public function testInput($function, $inputs, $name, $expected) {
$resource = $this
->getMock('Assetic\\Factory\\Resource\\ResourceInterface');
$factory = $this
->getMockBuilder('Assetic\\Factory\\AssetFactory')
->disableOriginalConstructor()
->getMock();
$resource
->expects($this
->once())
->method('getContent')
->will($this
->returnValue('<?php ' . $function . '(' . $inputs . ') ?>'));
$factory
->expects($this
->once())
->method('generateAssetName')
->will($this
->returnValue($name));
$loader = new FunctionCallsFormulaLoader($factory);
$formulae = $loader
->load($resource);
$this
->assertEquals($expected, $formulae);
}