/**
  * @dataProvider getDebugAndCount
  */
 public function testUrls($debug, $count, $message)
 {
     $helper = new AsseticHelper(new AssetFactory('/foo', $debug), $debug);
     $urls = $helper->assets(array('js/jquery.js', 'js/jquery.plugin.js'));
     $this->assertInternalType('array', $urls, '->assets() returns an array');
     $this->assertEquals($count, count($urls), $message);
 }
 /**
  * Constructor.
  *
  * @param Packages|CoreAssetsHelper $packages The assets packages
  * @param AssetFactory              $factory  The asset factory
  */
 public function __construct($packages, AssetFactory $factory)
 {
     // Symfony <2.7 BC
     if (!$packages instanceof Packages && !$packages instanceof CoreAssetsHelper) {
     }
     if ($packages instanceof Packages) {
         $this->packages = $packages;
     } elseif ($packages instanceof CoreAssetsHelper) {
         $this->assetsHelper = $packages;
     } else {
         throw new \InvalidArgumentException('Argument 1 passed to ' . __METHOD__ . ' must be an instance of Symfony\\Component\\Asset\\Packages or Symfony\\Component\\Templating\\Helper\\CoreAssetsHelper, instance of ' . get_class($packages) . ' given');
     }
     parent::__construct($factory);
 }
 /**
  * Constructor.
  *
  * @param RouterHelper $routerHelper The router helper
  * @param AssetFactory $factory      The asset factory
  */
 public function __construct(RouterHelper $routerHelper, AssetFactory $factory)
 {
     $this->routerHelper = $routerHelper;
     parent::__construct($factory);
 }
 /**
  * Constructor.
  *
  * @param CoreAssetsHelper $assetsHelper The assets helper
  * @param AssetFactory     $factory      The asset factory
  */
 public function __construct(CoreAssetsHelper $assetsHelper, AssetFactory $factory)
 {
     $this->assetsHelper = $assetsHelper;
     parent::__construct($factory);
 }
 /**
  * Constructor.
  *
  * @param AssetsHelper $assetsHelper The assets helper
  * @param AssetFactory $factory      The asset factory
  * @param Boolean      $debug        The debug mode
  */
 public function __construct(AssetsHelper $assetsHelper, AssetFactory $factory, $debug = false)
 {
     $this->assetsHelper = $assetsHelper;
     parent::__construct($factory, $debug);
 }