/** * Verify that division by zero throws an exception. * * @test * @uses \Nubs\Vectorix\Vector::__construct * @covers ::divideByScalar * @expectedException Exception * @expectedExceptionMessage Cannot divide by zero */ public function divideByScalarZero() { $vector = new Vector([4, 8]); $vector->divideByScalar(0); }