PhpBench\Tests\Unit\Report\ReportManagerTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->rendererRegistry = $this->prophesize(ConfigurableRegistry::class);
        $this->generatorRegistry = $this->prophesize(ConfigurableRegistry::class);
        $this->reportManager = new ReportManager($this->generatorRegistry->reveal(), $this->rendererRegistry->reveal());
        $this->generator = $this->prophesize(GeneratorInterface::class);
        $this->renderer = $this->prophesize(RendererInterface::class);
        $this->outputRenderer = $this->prophesize(RendererInterface::class)->willImplement(OutputAwareInterface::class);
        $this->output = $this->prophesize(OutputInterface::class);
        $this->suiteCollection = new SuiteCollection();
        $this->reportsDocument = new Document();
        $reportsEl = $this->reportsDocument->createRoot('reports');
        $reportsEl->setAttribute('name', 'test_report');
        $reportEl = $reportsEl->appendElement('report');
        $reportEl->appendElement('description');
    }