File "ProjectFactoryBench.php"

Full Path: /var/www/html/back/vendor/phpdocumentor/reflection/tests/bench/ProjectFactoryBench.php
File size: 621 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace phpDocumentor\Reflection;

use phpDocumentor\Reflection\File\LocalFile;
use phpDocumentor\Reflection\Php\Factory\Method;

/**
 * @BeforeMethods({"init"})
 */
final class ProjectFactoryBench
{
    /**
     * @var ProjectFactory
     */
    private $factory;

    public function init()
    {
        $this->factory = \phpDocumentor\Reflection\Php\ProjectFactory::createInstance();
    }

    /**
     * @Revs({1, 8, 64, 1024})
     */
    public function benchCreateSingleFileProject()
    {
        $this->factory->create('myProject', [new LocalFile(__DIR__ . '/../assets/phpunit_assert.php')]);
    }
}