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