MathPHP\Statistics\Regression\LinearThroughPointTest::testConstructor PHP Метод

testConstructor() публичный Метод

public testConstructor ( )
    public function testConstructor()
    {
        $points = [[1, 2], [2, 3], [4, 5], [5, 7], [6, 8]];
        $force = [0, 0];
        $regression = new LinearThroughPoint($points, $force);
        $this->assertInstanceOf('MathPHP\\Statistics\\Regression\\Regression', $regression);
        $this->assertInstanceOf('MathPHP\\Statistics\\Regression\\LinearThroughPoint', $regression);
    }