Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCopyFilePartial::testApiCopyFile_CopiesNode_WhenNodeIsFile PHP Метод

testApiCopyFile_CopiesNode_WhenNodeIsFile() публичный Метод

    public function testApiCopyFile_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->copyFile($pa, $pnull);
        $test->assertTrue($fs->exists($pnull));
        $test->assertEquals($fs->read($pa), $fs->read($pnull));
    }