Spatie\DbDumper\DbDumper::checkIfDumpWasSuccessFul PHP Method

checkIfDumpWasSuccessFul() protected method

protected checkIfDumpWasSuccessFul ( Process $process, string $outputFile )
$process Symfony\Component\Process\Process
$outputFile string
    protected function checkIfDumpWasSuccessFul(Process $process, string $outputFile)
    {
        if (!$process->isSuccessful()) {
            throw DumpFailed::processDidNotEndSuccessfully($process);
        }
        if (!file_exists($outputFile)) {
            throw DumpFailed::dumpfileWasNotCreated();
        }
        if (filesize($outputFile) === 0) {
            throw DumpFailed::dumpfileWasEmpty();
        }
    }