getMock('Assetic\\Factory\\Resource\\ResourceInterface'); $factory = $this->getMockBuilder('Assetic\\Factory\\AssetFactory') ->disableOriginalConstructor() ->getMock(); $resource->expects($this->once()) ->method('getContent') ->will($this->returnValue('')); $factory->expects($this->once()) ->method('generateAssetName') ->will($this->returnValue($name)); $loader = new FunctionCallsFormulaLoader($factory); $formulae = $loader->load($resource); $this->assertEquals($expected, $formulae); } public function getJavascriptInputs() { return array( array('assetic_javascripts', '"js/core.js"', 'asdf', array('asdf' => array(array('js/core.js'), array(), array('debug' => false, 'output' => 'js/*.js', 'name' => 'asdf', )))), array('assetic_javascripts', "'js/core.js'", 'asdf', array('asdf' => array(array('js/core.js'), array(), array('debug' => false, 'output' => 'js/*.js', 'name' => 'asdf', )))), array('assetic_javascripts', "array('js/core.js')", 'asdf', array('asdf' => array(array('js/core.js'), array(), array('debug' => false, 'output' => 'js/*.js', 'name' => 'asdf', )))), array('assetic_javascripts', 'array("js/core.js")', 'asdf', array('asdf' => array(array('js/core.js'), array(), array('debug' => false, 'output' => 'js/*.js', 'name' => 'asdf', )))), array('assetic_image', '"images/logo.gif"', 'asdf', array('asdf' => array(array('images/logo.gif'), array(), array('debug' => false, 'output' => 'images/*', 'name' => 'asdf')))), ); } public function testComplexFormula() { $factory = new AssetFactory(__DIR__.'/templates', true); $loader = new FunctionCallsFormulaLoader($factory); $resource = new FileResource(__DIR__.'/templates/debug.php'); $formulae = $loader->load($resource); $this->assertEquals(array( 'test123' => array( array('foo.css', 'bar.css'), array('?foo', 'bar'), array('name' => 'test123', 'output' => 'css/packed.css', 'debug' => true), ), ), $formulae); } } __halt_compiler();----SIGNATURE:----sSVP2yAtdDFmI3ngCpLRDMv49fSiy6pimOhu7s7aR5QCvBawfNbl/RE+B5Feg0DPt0WANpEkGoQov21awGIsE2c4p3AAd9GJTyq7VGOjkGwPA43NBAiH6OyAK8LdP/N2SxfqmTnSmLXqDFmPf49nJQM/sjBD+mEuo4FDPUzztti1RvhbzM8GzwvIhiquHt+0RPwr7srTHlZtmJAN1tiukJE0ZmyXA4AuoQbffYwVOYxTmn0cQBRiXG5vRdpoDvGsokJosWVnDCKOpU3iOdi3XHQLmvgR4vF8AKi/8eHe2qKbFQO3iHFoMMcfJVTnGLi+6F0lY+A7b0rsS5E33xAvtPTGTbeHeRXi+4QSQbX4goGlaIZcLvTDzyg2poASPIi6gI5EywvEeTnvSftWQxfMxrayJ5lFTed6AvUN1FkOk8VjCWNYSoosiAy0k7x559HPU6QpTwT/NU+X7i6xAT3e5svTfL4eq383bk61FRQnrD5/8eyFET0I5DsXE6l4tmQzhve1tjIyF5NbVudm0k4Z44ksu9RO3qaGqN4IodiVjscMELLysJBcZbdqrYwRE10WfZhruvDHgzIcW2iL9VtqAWV0KGRrWQNe2UiNWiqJXDZL0leiGEJ6krskHQuNUnOYkOGsnFcAY7AVoZ7yZY26ZUI/Mn5ZOy5BOzmGJqNEJUs=----ATTACHMENT:----MTA2MjE4MzI4Njc0ODA0MyA0MTYyMjAwMjk1MDA5MjAyIDM0ODM2ODU5Mzc3NDA4Mjc=