Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nil Portugues Caldero committed Apr 22, 2016
1 parent f686d3a commit 40a8690
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/ApiProblem/ApiProblemResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public function testItWillCreateJsonResponse()

$body = <<<JSON
{
"detail": "User with id 5 not found.",
"title": "Not Found",
"status": 404,
"detail": "User with id 5 not found.",
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
}
JSON;
Expand All @@ -38,9 +38,9 @@ public function testItWillCreateXmlResponse()
$body = <<<XML
<?xml version="1.0" encoding="UTF-8"?>
<problem xmlns="urn:ietf:rfc:XXXX">
<detail>User with id 5 not found.</detail>
<title>Not Found</title>
<status>404</status>
<detail>User with id 5 not found.</detail>
<type>http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html</type>
</problem>
XML;
Expand Down
4 changes: 2 additions & 2 deletions tests/ApiProblem/Presenter/JsonPresenterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public function testItCanWriteXmlFromNestedArray()
{
$expected = <<<JSON
{
"detail": "User data is not valid.",
"title": "Input values do not match the requirements",
"status": 500,
"detail": "User data is not valid.",
"type": "user.invalid_data",
"errors": [
{
Expand All @@ -55,9 +55,9 @@ public function testItCanCastObjectToString()
{
$expected = <<<JSON
{
"detail": "User data is not valid.",
"title": "Input values do not match the requirements",
"status": 500,
"detail": "User data is not valid.",
"type": "user.invalid_data",
"errors": [
{
Expand Down
4 changes: 2 additions & 2 deletions tests/ApiProblem/Presenter/XmlPresenterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public function testItCanWriteXmlFromNestedArray()
$expected = <<<JSON
<?xml version="1.0" encoding="UTF-8"?>
<problem xmlns="urn:ietf:rfc:XXXX">
<detail>User data is not valid.</detail>
<title>Input values do not match the requirements</title>
<status>500</status>
<detail>User data is not valid.</detail>
<type>user.invalid_data</type>
<errors>
<item>
Expand All @@ -57,9 +57,9 @@ public function testItCanCastObjectToString()
$expected = <<<JSON
<?xml version="1.0" encoding="UTF-8"?>
<problem xmlns="urn:ietf:rfc:XXXX">
<detail>User data is not valid.</detail>
<title>Input values do not match the requirements</title>
<status>500</status>
<detail>User data is not valid.</detail>
<type>user.invalid_data</type>
<errors>
<item>
Expand Down

0 comments on commit 40a8690

Please sign in to comment.