public function testPopulateWithClonesMethodCopiesPropertyValuesFromGivenTypeDefinition() { $dummyTypeDefinition = new DocumentTypeDefinition('typeId'); $dummyTypeDefinition->setIsVersionable(true); $dummyTypeDefinition->setContentStreamAllowed(ContentStreamAllowed::cast(ContentStreamAllowed::ALLOWED)); $errorReportingLevel = error_reporting(E_ALL & ~E_USER_NOTICE); $this->documentTypeDefinition->populateWithClones($dummyTypeDefinition); error_reporting($errorReportingLevel); $this->assertEquals($dummyTypeDefinition, $this->documentTypeDefinition); }