Test that copy() works.

This commit is contained in:
Matt Butcher
2012-01-20 16:45:00 -06:00
parent d03f284701
commit f22f152d40

View File

@@ -352,6 +352,11 @@ class StreamWrapperTest extends \HPCloud\Tests\TestCase {
$contents = file_get_contents($url);
$this->assertGreaterThan(5, strlen($contents));
$fsCopy = '/tmp/hpcloud-copy-test.txt';
copy($url, $fsCopy, $this->basicSwiftContext());
$this->assertTrue(file_exists($fsCopy));
unlink($fsCopy);
}
/**