Exemplo n.º 1
0
 public function testRemoteFiles()
 {
     $this->object->addRemoteFile('http://jquery.com/jquery.js');
     $this->object->addRemoteFiles(array('http://jquery.com/jquery.js', 'http://google.com/angular.js'));
     $expected = array('http://jquery.com/jquery.js', 'http://google.com/angular.js');
     $this->assertEquals($expected, $this->object->getRemoteFiles());
 }
Exemplo n.º 2
0
 private function createFileCollection(array $files)
 {
     $fileCollection = new FileCollection($this->root);
     foreach ($files as $file) {
         if ($this->isRemoteFile($file)) {
             $fileCollection->addRemoteFile($file);
         } else {
             $fileCollection->addFile($file);
         }
     }
     return $fileCollection;
 }