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

testApiCopyFile_ThrowsException_WhenNodeIsDirectory() public method

    public function testApiCopyFile_ThrowsException_WhenNodeIsDirectory()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $pa = $this->getPrefixed('DIR_A');
        $pnull = $this->getPrefixed('DIR_NULL');
        $test->setExpectedException(WriteException::class);
        $test->assertTrue($fs->exists($pa));
        $test->assertFalse($fs->exists($pnull));
        $fs->copyFile($pa, $pnull);
    }