Carew\Tests\Event\Listener\Metadata\ExtractionTest::createDocument PHP Method

createDocument() private method

private createDocument ( $file )
    private function createDocument($file)
    {
        if ('.' == dirname($file)) {
            $file = new SplFileInfo(__DIR__ . '/../../../fixtures/' . $file, '', basename($file));
        } else {
            $file = new SplFileInfo(__DIR__ . '/../../../fixtures/' . $file, dirname($file), dirname($file) . '/' . basename($file));
        }
        return new Document($file);
    }