getMaxPoints example


class RatingMatrixTest extends TestCase
{
    /** * check that constants are defined as expected * * @group reviews */
    public function testThatConstantsAreSetLikeExpected(): void
    {
        $matrix = new RatingMatrix([]);
        static::assertEquals(5, $matrix->getMaxPoints());
    }

    /** * check that matrix calculates correctly * * @dataProvider getRatings * * @group reviews */
    public function testMatrixCalculation(float $expectedScore, int $reviewCounts, float $total, array $aggregation): void
    {
        
Home | Imprint | This part of the site doesn't use cookies.