diff --git a/tests/unit/CopyRequestTest.php b/tests/unit/CopyRequestTest.php
index d1a782b..6bce6b6 100644
--- a/tests/unit/CopyRequestTest.php
+++ b/tests/unit/CopyRequestTest.php
@@ -60,10 +60,11 @@ public function testDestruct()
$tmpfile = tempnam(sys_get_temp_dir(), 'composer_unit_test_');
$req = new CopyRequest('http://example.com/', $tmpfile, false, $this->iop->reveal(), $this->configp->reveal());
+ $req->getCurlOptions();
+ $req->makeSuccess();
$this->assertFileExists($tmpfile);
- // if $req->success === true ...
- $req->makeSuccess();
+ // if $req->success === true (default, or on success) ...
unset($req);
// then tmpfile remain
@@ -71,8 +72,8 @@ public function testDestruct()
unlink($tmpfile);
$req = new CopyRequest('http://example.com/', $tmpfile, false, $this->iop->reveal(), $this->configp->reveal());
- // if $req->success === false (default) ...
- // $req->makeSuccess();
+ // if $req->success === false (flagged when download starts) ...
+ $req->getCurlOptions();
unset($req);
// then cleaned tmpfile automatically
diff --git a/tests/unit/PrefetcherTest.php b/tests/unit/PrefetcherTest.php
index fb83b9b..5e0c08f 100644
--- a/tests/unit/PrefetcherTest.php
+++ b/tests/unit/PrefetcherTest.php
@@ -26,7 +26,7 @@ public function testFetchAllOnFailure()
CURLOPT_URL => 'file://uso800.txt',
CURLOPT_FILE => tmpfile(),
));
-
+
$this->iop->writeError(arg::containingString("37: Couldn't open file /uso800.txt"), true, IOInterface::NORMAL)->shouldBeCalledTimes(1);
$this->iop->writeError(" Finished: success: 0, skipped: 0, failure: 1, total: 1", true, IOInterface::NORMAL)->shouldBeCalledTimes(1);