diff --git a/tests/DataStorage/Database/DataMapperAbstractTest.php b/tests/DataStorage/Database/DataMapperAbstractTest.php index 5fc503a7e..2e42bfeee 100644 --- a/tests/DataStorage/Database/DataMapperAbstractTest.php +++ b/tests/DataStorage/Database/DataMapperAbstractTest.php @@ -257,8 +257,8 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase $found = BaseModelMapper::find('sir'); self::assertCount(2, $found); - self::assertEquals($model2->string, reset($found)->string); - self::assertEquals($model3->string, end($found)->string); + self::assertEquals($model2->string, \reset($found)->string); + self::assertEquals($model3->string, \end($found)->string); } public function testWithConditional() : void @@ -295,10 +295,10 @@ class DataMapperAbstractTest extends \PHPUnit\Framework\TestCase $found = BaseModelMapper::withConditional('language', 'de')::getAll(); self::assertCount(2, $found); - self::assertEquals($model1->string, reset($found)->string); - self::assertEquals($model2->string, end($found)->string); - self::assertEquals('cond1_de', reset($found)->conditional); - self::assertEquals('cond2_de', end($found)->conditional); + self::assertEquals($model1->string, \reset($found)->string); + self::assertEquals($model2->string, \end($found)->string); + self::assertEquals('cond1_de', \reset($found)->conditional); + self::assertEquals('cond2_de', \end($found)->conditional); } /** diff --git a/tests/Math/Statistic/AverageTest.php b/tests/Math/Statistic/AverageTest.php index 83177b1d0..b5cdf83d4 100644 --- a/tests/Math/Statistic/AverageTest.php +++ b/tests/Math/Statistic/AverageTest.php @@ -96,7 +96,7 @@ class AverageTest extends \PHPUnit\Framework\TestCase ]; $average = [ - 66.626, 66.302, 66.328, 66.352, 66.19, 66.152, 65.764, 65.264, 64.852, 64.288, 63.452, 63.164, 62.626, 61.752, 61.452, 61.352 + 66.626, 66.302, 66.328, 66.352, 66.19, 66.152, 65.764, 65.264, 64.852, 64.288, 63.452, 63.164, 62.626, 61.752, 61.452, 61.352, ]; self::assertEqualsWithDelta($average, Average::totalMovingAverage($data, 5), 0.1);