/** * FolderBuildListFixture constructor * If no root directory is specified a temporary one will be created * * @param string $dir directory to put * @param string $urlBase base URL of the build storage */ public function __construct($dir = null, $urlBase = "http://example.com/get") { if ($dir == null) { $dir = Util::tempdir(); } $this->dir = $dir; $this->urlBase = $urlBase; }
/** * FolderBuildListFixture constructor * If no root directory is specified a temporary one will be created * * @param string $root filesystem root of the build storage * @param string $urlBase base URL of the build storage */ public function __construct($root = null, $urlBase = "http://example.com/get") { if ($root == null) { $root = Util::tempdir(); } $this->root = $root; $this->urlBase = $urlBase; }