Example #1
0
 /**
  * Test equals method.
  */
 public function testEquals()
 {
     $this->given($entity1 = new Category(CategoryId::fromNative($this->faker->unique()->uuid())))->and($entity2 = new Category(CategoryId::fromNative($this->faker->ean13())))->then()->boolean($entity1->equals($entity1))->isTrue()->boolean($entity1->equals($entity2))->isFalse();
 }