public function testTags() { $driver = $this->_getDriverMock(); $driver->expects($this->at(0))->method('start')->with('root_level_timer', ['default_tag' => 'default']); $driver->expects($this->at(1))->method('start')->with('root_level_timer->some_other_timer', ['default_tag' => 'default', 'type' => 'test']); \Magento\Framework\Profiler::add($driver); \Magento\Framework\Profiler::setDefaultTags(['default_tag' => 'default']); \Magento\Framework\Profiler::start('root_level_timer'); \Magento\Framework\Profiler::start('some_other_timer', ['type' => 'test']); }