Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCopyFilePartial::testApiCopyFile_ThrowsException_WhenNodeIsFileAndDestinationIsDirectory PHP Method

testApiCopyFile_ThrowsException_WhenNodeIsFileAndDestinationIsDirectory() public method

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