function ResourceStreamCrossingTestCase::testCopyBtoA in D7 Media 6
File
- resource/
tests/ ResourceStream.test, line 223 - This provides SimpleTests for the core stream wrapper functionality.
Class
Code
function testCopyBtoA() {
$this
->asserttrue(file_put_contents($this->urlB, $this->data), "file_put_contents({$this->urlB}, {$this->data})");
$this
->asserttrue(copy($this->urlB, $this->urlA), "copy({$this->urlB}, {$this->urlA})");
$this
->asserttrue($this->data == file_get_contents($this->urlA), "verify content of {$this->urlA}({$this->data}) matches {$this->urlB}");
unlink($this->urlA);
unlink($this->urlB);
}