Hostnet\Component\Webpack\Profiler\WebpackDataCollectorTest::testProfiler PHP Method

testProfiler() public method

public testProfiler ( )
    public function testProfiler()
    {
        $profiler = new Profiler();
        $collector = new WebpackDataCollector($profiler);
        $profiler->set('foobar', 'hoi');
        $collector->collect($this->getMockBuilder(Request::class)->getMock(), $this->getMockBuilder(Response::class)->getMock());
        $this->assertEquals('hoi', $collector->get('foobar'));
        $this->assertEquals('webpack', $collector->getName());
    }
WebpackDataCollectorTest