Skip to content

Commit

Permalink
updated based on new api
Browse files Browse the repository at this point in the history
  • Loading branch information
mostafabarmshory committed Mar 10, 2021
1 parent 04a5285 commit 0f855dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Exceptions/ExceptionMappingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ public function getExampleExceptions()
public function testEncoding($ex, $messge, $code, $pre, $status, $params, $solutions)
{
$builder = new ObjectMapperBuilder();
$mapper = $builder->setType('josn')->build();
$mapper = $builder->setType('json')
->setSchema('json')
->build();

$json = $mapper->writeValueAsString($ex);
$reverse = json_decode($json);
Expand Down

0 comments on commit 0f855dd

Please sign in to comment.