From 47387525ffc2a09db7bf473ac0295a409a5bbc81 Mon Sep 17 00:00:00 2001 From: spot Date: Sun, 8 May 2016 12:14:55 +0200 Subject: [PATCH] win: tests --- tests/Storage.upload.phpt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Storage.upload.phpt b/tests/Storage.upload.phpt index 5bc4e1e..dfec8ec 100644 --- a/tests/Storage.upload.phpt +++ b/tests/Storage.upload.phpt @@ -31,8 +31,8 @@ $meta = new ImageEntity(); $tmpDir = __DIR__ . '/tmp'; $tmpName = uniqid('upload'); -exec("mkdir $tmpDir"); -exec("cp $sampleDir/$sampleName $tmpDir/$tmpName"); +mkdir("mkdir $tmpDir"); +copy("$sampleDir/$sampleName", "$tmpDir/$tmpName"); $uploadedFile = new FileUpload([ 'name' => $sampleName,