public function testAdd(array $A, array $B, array $R) { $A = new Vector($A); $B = new Vector($B); $A+B = $A->add($B); $R = new Vector($R); $this->assertEquals($R, $A+B); $this->assertEquals($R->getVector(), $A+B->getVector()); }