Commit 976126cc authored by borisson_'s avatar borisson_ Committed by borisson_

Issue #2917852 by borisson_: Fixes for php7.1

parent 5bec101d
......@@ -49,10 +49,10 @@ class SliderProcessorTest extends UnitTestCase {
$facet->setResults([$result_lower, $result_higher]);
// Process the data.
$startTime = microtime();
$startTime = microtime(TRUE);
$this->processor->postQuery($facet);
$new_results = $facet->getResults();
$stopTime = microtime();
$stopTime = microtime(TRUE);
if (($stopTime - $startTime) > 1) {
$this->fail('Test is too slow');
......@@ -84,10 +84,10 @@ class SliderProcessorTest extends UnitTestCase {
$facet->setResults($original_results);
// Process the data.
$startTime = microtime();
$startTime = microtime(TRUE);
$this->processor->postQuery($facet);
$new_results = $facet->getResults();
$stopTime = microtime();
$stopTime = microtime(TRUE);
if (($stopTime - $startTime) > 1) {
$this->fail('Test is too slow');
......
......@@ -92,9 +92,9 @@ class SliderWidgetTest extends WidgetTestBase {
$facet->setFieldIdentifier('owl');
$facet->setWidget('slider', []);
$startTime = microtime();
$startTime = microtime(TRUE);
$build = $this->widget->build($facet);
$stopTime = microtime();
$stopTime = microtime(TRUE);
if (($stopTime - $startTime) > 1) {
$this->fail('Test is too slow');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment