<?php

namespace MathPHP\Tests\Probability\Distribution\Multivariate;

use MathPHP\Probability\Distribution\Multivariate;

class LimitsTest extends \PHPUnit\Framework\TestCase
{
    /**
     * Limits should look like:
     *  (a,b)
     *  [a,b)
     *  (a,b]
     *  [a,b]
     */
    private function limitTest($limits)
    {
        foreach ($limits as $parameter => $limit) {
            $this->assertRegExp('/^ ([[(]) (.+) , (.+?) ([])]) $/x', $limit);
        }
    }

    /**
     * @test Limits constant is correct format
     */
    public function testDirichletParameterLimits()
    {
        $this->limitTest(Multivariate\Dirichlet::PARAMETER_LIMITS);
    }

    /**
     * @test Limits constant is correct format
     */
    public function testDirichletSupportLimits()
    {
        $this->limitTest(Multivariate\Dirichlet::SUPPORT_LIMITS);
    }
}

<?php

namespace MathPHP\Tests\Probability\Distribution\Multivariate;

use MathPHP\Probability\Distribution\Multivariate;

class LimitsTest extends \PHPUnit\Framework\TestCase
{
    /**
     * Limits should look like:
     *  (a,b)
     *  [a,b)
     *  (a,b]
     *  [a,b]
     */
    private function limitTest(array $limits)
    {
        foreach ($limits as $parameter => $limit) {
            $this->assertRegExp('/^ ([[(]) (.+) , (.+?) ([])]) $/x', $limit);
        }
    }

    /**
     * @test Limits constant is correct format
     */
    public function testDirichletParameterLimits()
    {
        $this->limitTest(Multivariate\Dirichlet::PARAMETER_LIMITS);
    }

    /**
     * @test Limits constant is correct format
     */
    public function testDirichletSupportLimits()
    {
        $this->limitTest(Multivariate\Dirichlet::SUPPORT_LIMITS);
    }

    /**
     * @test Limits constant is correct format
     */
    public function testHypergeometricParameterLimits()
    {
        $this->limitTest(Multivariate\Hypergeometric::PARAMETER_LIMITS);
    }
}

Add hypergeometric parameter limits to limit test for multivariate distributions.
Add hypergeometric parameter limits to limit test for multivariate distributions.
