/** * @dataProvider copyProvider * @param EntityContent $content */ public function testCopy(EntityContent $content) { $copy = $content->copy(); $this->assertNotSame($content, $copy, 'Copy must not be the same instance.'); $this->assertTrue($content->equals($copy), 'Copy must be equal to the original.'); $this->assertSame(get_class($content), get_class($copy), 'Copy must have the same type.'); $this->assertEquals($content->getNativeData(), $copy->getNativeData(), 'Copy must have the same data.'); }