Kraken\_Module\Filesystem\_Partial\Filesystem\FsApiCopyPartial::testApiCopy_ThrowsException_WhenSourceDoesNotExist PHP Method

testApiCopy_ThrowsException_WhenSourceDoesNotExist() public method

    public function testApiCopy_ThrowsException_WhenSourceDoesNotExist()
    {
        $test = $this->getTest();
        $fs = $this->createFilesystem();
        $pa = $this->getPrefixed('FILE_NULL');
        $pb = $this->getPrefixed('NULL');
        $test->setExpectedException(WriteException::class);
        $test->assertFalse($fs->exists($pa));
        $test->assertFalse($fs->exists($pb));
        $fs->copy($pa, $pb);
    }