Skip to content

Commit 12c60fc

Browse files
committed
fix typo in Serializer and update tests
1 parent a0ac74e commit 12c60fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Utils/Serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function toJSONString()
3434

3535
public function toXMLString()
3636
{
37-
return $this->arrayToXml($this->data, '<custom_fields/>');
37+
return $this->arrayToXml($this->data, '<custom_field/>');
3838
}
3939

4040
public function toQueryString()

tests/Unit/Utils/SerializerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
});
2121

2222
it('Should return a XML', function() {
23-
$this->assertXmlStringEqualsXmlString("<custom_fields><nom>papi</nom><job>coder</job></custom_fields>",
23+
$this->assertXmlStringEqualsXmlString("<custom_field><nom>papi</nom><job>coder</job></custom_field>",
2424
(new Serializer(['nom' => 'papi', 'job' => 'coder']))->toXMLString());
2525
});

0 commit comments

Comments
 (0)