Test that copy() works.
This commit is contained in:
@@ -352,6 +352,11 @@ class StreamWrapperTest extends \HPCloud\Tests\TestCase {
|
|||||||
|
|
||||||
$contents = file_get_contents($url);
|
$contents = file_get_contents($url);
|
||||||
$this->assertGreaterThan(5, strlen($contents));
|
$this->assertGreaterThan(5, strlen($contents));
|
||||||
|
|
||||||
|
$fsCopy = '/tmp/hpcloud-copy-test.txt';
|
||||||
|
copy($url, $fsCopy, $this->basicSwiftContext());
|
||||||
|
$this->assertTrue(file_exists($fsCopy));
|
||||||
|
unlink($fsCopy);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user