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