Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCopyFilePartial::testApiCopyFile_ThrowsException_WhenNodeIsFileAndDestinationIsFile PHP Méthode

testApiCopyFile_ThrowsException_WhenNodeIsFileAndDestinationIsFile() public méthode

    public function testApiCopyFile_ThrowsException_WhenNodeIsFileAndDestinationIsFile()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $pa = $this->getPrefixed('FILE_A');
        $pb = $this->getPrefixed('FILE_B');
        $test->setExpectedException(WriteException::class);
        $test->assertTrue($fs->exists($pa));
        $test->assertTrue($fs->exists($pb));
        $fs->copyFile($pa, $pb);
    }