Exemple #1
0
 public function testAddCollectorsClass()
 {
     $this->profiler->registerCollectors([new PhpVersion($this->profiler->getContext()->getProcess(), $this->profiler->getDatasource()), new Request($this->profiler->getContext()->getProcess(), $this->profiler->getDatasource()), new Timeline($this->profiler->getContext()->getProcess(), $this->profiler->getDatasource()), new Duration($this->profiler->getContext()->getProcess(), $this->profiler->getDatasource())]);
     $collectors = $this->profiler->getCollectors();
     $this->assertEquals(2, count($collectors['initial']));
     $this->assertEquals(1, count($collectors['final']));
     $this->assertEquals(1, count($collectors['stream']));
 }