Exemple #1
0
 /**
  * @dataProvider autoscalingAlgorithmsDataProvider
  * @testdox Autoscaling algorithm math
  * @dataProviderTestdox %1$15s: (max=%3$d) %2$5d jobs => %4$5s workers
  */
 function testAutoscalingAlgorithms($algo, $numPending, $maxConcurrency, $expectedValue)
 {
     $this->assertEquals($expectedValue, JQAutoscaler::calculateScale($algo, $numPending, $maxConcurrency));
 }
 function testSettingScalerPollingInterval()
 {
     $autoscaler = new JQAutoscaler($this->getMock('JQStore_Array'), $this->getMock('JQScalable_Noop'), array());
     $autoscaler->setScalerPollingInterval(10);
 }