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