public function testWithoutFormatedOutputByXmlSerializationVisitor() { $namingStrategy = new SerializedNameAnnotationStrategy(new CamelCaseNamingStrategy()); $xmlVisitor = new XmlSerializationVisitor($namingStrategy); $xmlVisitor->setFormatOutput(false); $visitors = new Map(array('xml' => new XmlSerializationVisitor($namingStrategy))); $serializer = new Serializer($this->factory, $this->handlerRegistry, new UnserializeObjectConstructor(), $visitors, $this->deserializationVisitors, $this->dispatcher); $object = new SimpleClassObject(); $object->foo = 'foo'; $object->bar = 'bar'; $object->moo = 'moo'; $stringXml = $serializer->serialize($object, $this->getFormat()); $this->assertXmlStringEqualsXmlString($this->getContent('simple_class_object_minified'), $stringXml); }