Ejemplo n.º 1
0
 public function testNegate()
 {
     // Arrange
     $vector = new Vector(array(1, 2, 3));
     // Act
     $vector->negate();
     // Assert
     $this->assertEquals('[-1.0000000000, -2.0000000000, -3.0000000000]', (string) $vector);
 }