public function testGetEquation(array $points) { $force = [0, 0]; $regression = new LinearThroughPoint($points, $force); $this->assertRegExp('/^y = [-]?\\d+[.]\\d+x [+\\-] \\d+[.]\\d+$/', $regression->getEquation()); }