public function testConversion($xml, $xsd, $class)
{
$original = $this->clearXML(file_get_contents($xml));
$object = self::$serializer->deserialize($original, $class, 'xml');
$new = self::$serializer->serialize($object, 'xml');
$new = $this->clearXML($new);
$differ = new \XMLDiff\Memory();
$diff = $differ->diff($original, $new);
$notEqual = strpos($diff, '<dm:copy count="1"/>') === false || strlen($diff) > 110;
if (0 && $notEqual) {
file_put_contents("a.xml", $original);
file_put_contents("b.xml", $new);
file_put_contents("c.xml", $diff);
exit;
}
$this->assertFalse($notEqual);
}