/**
  * @expectedException \InvalidArgumentException
  */
 public function testInvalidGlobResource()
 {
     $container = new Container(new LibraryCollection(array(new LibraryDefinition('jquery', array(new FileResource(realpath(__DIR__ . '/../Data/web/js/jquery.js')), new HttpResource('http://code.jquery.com/jquery-1.11.3.js'), new HttpResource('//code.jquery.com/jquery-1.11.3.js'))), new LibraryDefinition('tipsy', array(new ReferenceResource('jquery'), new GlobResource(realpath(__DIR__ . '/../Data/web/lib/tipsy') . '/*'), new GlobResource(realpath(__DIR__ . '/../Data/web/empty') . '/*'))))));
     $this->compilerPass->process($container);
 }
 /**
  * @expectedException \RunOpenCode\AssetsInjection\Exception\CircularReferenceException
  * @expectedExceptionMessage Circular reference detected at definition "my-lib", dependency chain (path: [my-lib] => [namespace-test] => [my-other-lib/in-some-namespace] => [my-lib]).
  */
 public function testCircularReferenceDetectedWithAliases()
 {
     $container = new Container(new LibraryCollection(array(new LibraryDefinition('my-lib', array(new ReferenceResource('jquery-ui'), new ReferenceResource('namespace-test'), new FileResource('/path/to/my/file/javascript.js', array('ref' => 'aliased-js')))), new LibraryDefinition('jquery', array(new FileResource('/path/to/file/jquery.js'))), new LibraryDefinition('jquery-ui', array(new FileResource('/path/to/file/jquery-ui.js'), new FileResource('/path/to/file/jquery-ui.css'))), new LibraryDefinition('my-other-lib/in-some-namespace', array(new ReferenceResource('jquery-ui'), new ReferenceResource('jquery'), new ReferenceResource('my-lib'), new FileResource('/path/to/my/other/file/javascript.js'), new FileResource('/path/to/my/other/file/stylesheet.css'))), new LibraryDefinition('namespace-test', array(new ReferenceResource('my-other-lib/in-some-namespace'), new FileResource('/path/to/my/other/file/javascript.js'), new FileResource('/path/to/my/other/file/stylesheet.css'))))));
     $this->compilerPass->process($container);
 }