public function testConvertUserProfileEntryToAndFromStringV2() { $this->entry->transferFromXML($this->V2entryText); $entryXml = $this->entry->saveXML(); $newUserProfileEntry = new YouTube\UserProfileEntry(); $newUserProfileEntry->setMajorProtocolVersion(2); $newUserProfileEntry->transferFromXML($entryXml); $this->verifyAllSamplePropertiesAreCorrectV2($newUserProfileEntry); $newUserProfileEntryXml = $newUserProfileEntry->saveXML(); $this->assertEquals($entryXml, $newUserProfileEntryXml); }