Skip to content

Commit aa93104

Browse files
committed
Update test with more convincing data
Added some escaped slashes to demonstrate that they weren't "unescaped" by the getContent function if the json isn't valid.
1 parent f917876 commit aa93104

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Requests/VerifierTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,13 +288,13 @@ public function get_content_returns_the_raw_content_if_it_is_not_valid_json()
288288
{
289289
public function getContent($asResource = false)
290290
{
291-
return '{';
291+
return '"url":"http:\\/\\/google.com"';
292292
}
293293
};
294294

295295
$verifier = new Verifier($request);
296296

297-
$this->assertSame('{', $verifier->getContent());
297+
$this->assertSame('"url":"http:\\/\\/google.com"', $verifier->getContent());
298298
}
299299

300300
/**

0 commit comments

Comments
 (0)