PhpBench\Tests\Unit\Storage\Archiver\XmlArchiverTest::createFileInfo PHP Method

createFileInfo() private method

private createFileInfo ( $path )
    private function createFileInfo($path)
    {
        $file = $this->prophesize(\SplFileInfo::class)->reveal();
        $file->isFile()->willReturn(true);
        $file->getExtension()->willReturn(substr($path, -3));
        $file->getFilename()->willReturn(basename($path));
        return $file;
    }