public function testDotProductCommutative(array $A, array $B) { $A = new Vector($A); $B = new Vector($B); $A⋅B = $A->dotProduct($B); $B⋅A = $B->dotProduct($A); $this->assertEquals($A⋅B, $B⋅A); }