Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCopyPartial::testApiCopy_CopiesNode_WhenNodeIsFile PHP Method

testApiCopy_CopiesNode_WhenNodeIsFile() public method

    public function testApiCopy_CopiesNode_WhenNodeIsFile()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $pa = $this->getPrefixed('FILE_A');
        $pnull = $this->getPrefixed('FILE_NULL');
        $test->assertTrue($fs->exists($pa));
        $test->assertFalse($fs->exists($pnull));
        $fs->copy($pa, $pnull);
        $test->assertTrue($fs->exists($pnull));
        $test->assertEquals($fs->read($pa), $fs->read($pnull));
    }