Skip to content

Commit

Permalink
Fix typoes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsw committed Mar 27, 2018
1 parent 1c4a18b commit 723f9fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/tests/DefaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public function testPing()

public function testReflection()
{
$client = $this->generateTestJsonFunc()('POST', '/reflection', json_encode(['greeting' => 'Hello, world!']));
$response = json_decode($client->getResponse()->getContent(), true);
$body = ['greeting' => 'Hello, world!'];
$client = $this->generateTestJsonFunc()('POST', '/reflection', json_encode($body));
$responseContent = json_decode($client->getResponse()->getContent(), true);

$this->assertEquals($body['greeting'], $res['greeting']);
$this->assertEquals($body['greeting'], $responseContent['greeting']);
}
}

0 comments on commit 723f9fa

Please sign in to comment.