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); } }
public function getMixes() { return $this->mixes ? File::parseFiles($this->mixes) : array(); }
/** * check file exists * @dataProvider filesArray2 */ public function testParseFiles2($expectedFiles, $files) { $this->setExpectedException('Exception', "file no exists {$files[0]}"); File::parseFiles($files); }