PhpCsFixer\Test\IntegrationCaseFactory::determineExpectedCode PHP Method

determineExpectedCode() protected method

protected determineExpectedCode ( string | null $code, Symfony\Component\Finder\SplFileInfo $file ) : string
$code string | null
$file Symfony\Component\Finder\SplFileInfo
return string
    protected function determineExpectedCode($code, SplFileInfo $file)
    {
        $code = $this->determineCode($code, $file, '-out.php');
        if (null === $code) {
            throw new \InvalidArgumentException('Missing expected code.');
        }
        return $code;
    }