Ejemplo n.º 1
0
 /**
  * Verify that 2 differently keyed vectors are not considered the same
  * vector space.
  *
  * @test
  * @uses \Nubs\Vectorix\Vector::__construct
  * @uses \Nubs\Vectorix\Vector::components
  * @covers ::isSameVectorSpace
  */
 public function isSameVectorSpaceWithDifferentKeyedVectors()
 {
     $a = new Vector([1, 2, 3]);
     $b = new Vector(['x' => 4, 'y' => 7, 'z' => 1]);
     $this->assertFalse($a->isSameVectorSpace($b), 'Vectors with differently keyed components are not considered same vector space');
 }