/** * Test if InvalidArgumentException will be thrown, when using NumPHP::linspace * with negative `$number` * * @expectedException \NumPHP\Core\Exception\InvalidArgumentException * @expectedExceptionMessage Number has to be a positive value */ public function testLinspaceInvalidArgumentException() { NumPHP::linspace(1.5, 4.5, -1); }