Skip to content

Commit

Permalink
Update unit tests to expect arrays from getParsedBody()
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat committed Sep 5, 2015
1 parent 919ce21 commit 3fb0cd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Http/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public function testGetParsedBodyForm()
$body = new RequestBody();
$body->write('foo=bar');
$request = new Request($method, $uri, $headers, $cookies, $serverParams, $body);
$this->assertEquals((object)['foo' => 'bar'], $request->getParsedBody());
$this->assertEquals(['foo' => 'bar'], $request->getParsedBody());
}

public function testGetParsedBodyJson()
Expand All @@ -709,7 +709,7 @@ public function testGetParsedBodyJson()
$body->write('{"foo":"bar"}');
$request = new Request($method, $uri, $headers, $cookies, $serverParams, $body);

$this->assertEquals((object)['foo' => 'bar'], $request->getParsedBody());
$this->assertEquals(['foo' => 'bar'], $request->getParsedBody());
}

public function testGetParsedBodyXml()
Expand Down

0 comments on commit 3fb0cd4

Please sign in to comment.