public function setUp() { $this->benchmark = $this->getBenchmarkMock(); $this->profiler = $this->getProfilerMock(); $this->formatter = new TimelineFormatter($this->profiler); $this->formatter->setBenchmark($this->benchmark); }
public function testIdsAreUnique() { $lastId = $this->formatter->getId(); $this->formatter->setBenchmark($this->getBenchmarkMock()); $this->assertNotSame($lastId, $this->formatter->getId()); $lastId = $this->formatter->getId(); $this->formatter->setBenchmark($this->getBenchmarkMock()); $this->assertNotSame($lastId, $this->formatter->getId()); }
public function setUp() { $this->benchmark = $this->getMock('Fabfuel\\Prophiler\\Benchmark\\BenchmarkInterface'); $this->formatter = new LogFormatter(); $this->formatter->setBenchmark($this->benchmark); }
public function setUp() { $this->benchmark = $this->getBenchmarkMock(); $this->formatter = new LogFormatter(); $this->formatter->setBenchmark($this->benchmark); }