public function testCopy() { $objNew = $this->objProperty->copy('neu'); $this->assertInstanceOf('DcaTools\\Definition\\Property', $objNew); $this->assertEquals('neu', $objNew->getName()); $this->assertTrue(isset($GLOBALS['TL_DCA']['tl_test']['fields']['neu'])); $this->assertEquals($GLOBALS['TL_DCA']['tl_test']['fields']['neu'], $GLOBALS['TL_DCA']['tl_test']['fields']['test']); $objNew->set('label', array('no', 'thing')); $this->assertNotEquals($GLOBALS['TL_DCA']['tl_test']['fields']['neu'], $GLOBALS['TL_DCA']['tl_test']['fields']['test']); }