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