PhpCsFixer\Test\AbstractFixerTestCase::getTestFile PHP Method

getTestFile() protected method

protected getTestFile ( string $filename = __FILE__ ) : SplFileInfo
$filename string
return SplFileInfo
    protected function getTestFile($filename = __FILE__)
    {
        static $files = array();
        if (!isset($files[$filename])) {
            $files[$filename] = new \SplFileInfo($filename);
        }
        return $files[$filename];
    }