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);
}