getDatabaseMatrixAggregationArrayWithFloats example


            'rating should be 3, review count 12 and total points 40' => [
                3.33333, 12, 40, self::getDatabaseMatrixAggregationArray(2, 1, 3, 3, 3),
            ],
            'all zero, rating should be 0, review count 0 and total points 0' => [
                0.0, 0, 0, self::getDatabaseMatrixAggregationArray(0, 0, 0, 0, 0),
            ],
            'only one point rating given, rating should be 5, review count 15 and total points 75' => [
                5.0, 15, 75, self::getDatabaseMatrixAggregationArray(0, 0, 0, 0, 15),
            ],
            'ascending numbers of floats, rating should be 4,0667, count 15, total 61' => [
                4.0667, 15, 61, self::getDatabaseMatrixAggregationArrayWithFloats(1, 2, 3, 4, 5),
            ],
        ];
    }

    /** * check that matrix calculates correctly * * @group reviews */
    public function testMatrixWithAllAtOne(): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.