Example #1
0
 function addUses($files)
 {
     if (empty($files)) {
         return;
     }
     if (is_string($files)) {
         // not only split , but also change str to array
         $files = explode(';', $files);
     }
     // no need to check exists, addFile do this work later
     $files = File::parseFiles($files, false);
     foreach ($files as $file) {
         $this->addUse($file);
     }
 }
Example #2
0
 public function getMixes()
 {
     return $this->mixes ? File::parseFiles($this->mixes) : array();
 }
Example #3
0
 /**
  *  check file exists
  * @dataProvider filesArray2
  */
 public function testParseFiles2($expectedFiles, $files)
 {
     $this->setExpectedException('Exception', "file no exists {$files[0]}");
     File::parseFiles($files);
 }