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