requireJs() public method

Constructs the require.js file from the provided require.js JSON array.
public requireJs ( array $json = [] ) : string
$json array The require.js JSON configuration.
return string The RequireJS JavaScript configuration.
 /**
  * testRequireJs
  *
  * @dataProvider providerRequireJs
  * @param array $json
  * @param string $expected
  */
 public function testRequireJs(array $json = array(), $expected = '')
 {
     $result = $this->process->requireJs($json);
     $this->assertEquals($expected, $result);
 }