/** * @expectedException \Kcs\Serializer\Exception\UnsupportedFormatException * @expectedExceptionMessage The format "xml" is not supported for serialization */ public function testDoesNotAddOtherVisitorsWhenConfiguredExplicitly() { $this->assertSame($this->builder, $this->builder->setSerializationVisitor('json', new JsonSerializationVisitor(new CamelCaseNamingStrategy()))); $this->builder->build()->serialize('foo', 'xml'); }