Example #1
0
 /**
  * Test setThreshold method
  */
 public function testSetThreshold()
 {
     $thresholdKey = Magento_Profiler_Driver_Standard_Stat::TIME;
     $this->_output->setThreshold($thresholdKey, 100);
     $thresholds = PHPUnit_Util_Class::getObjectAttribute($this->_output, '_thresholds');
     $this->assertArrayHasKey($thresholdKey, $thresholds);
     $this->assertEquals(100, $thresholds[$thresholdKey]);
     $this->_output->setThreshold($thresholdKey, null);
     $this->assertArrayNotHasKey($thresholdKey, $this->_output->getThresholds());
 }