Exemplo n.º 1
0
 /**
  * @dataProvider instanceProvider
  * @param Entity $entity
  */
 public function testCopy(Entity $entity)
 {
     $copy = $entity->copy();
     // The equality method alone is not enough since it does not check the IDs.
     $this->assertTrue($entity->equals($copy));
     $this->assertEquals($entity->getId(), $copy->getId());
     $this->assertNotSame($entity, $copy);
 }