/** * @expectedException InvalidArgumentException * @expectedExceptionMessage Timer name must not contain a nesting separator. */ public function testClearException() { Magento_Profiler::enable(); Magento_Profiler::clear('timer ' . Magento_Profiler::NESTING_SEPARATOR . ' name'); }