public function testSpearmansRhoExceptionDifferentLengthArrays() { $X = [1, 2, 3]; $Y = [2, 3, 4, 5]; $this->setExpectedException('MathPHP\\Exception\\BadDataException'); Correlation::spearmansRho($X, $Y); }