PHP 7 is right: an empty string is not a valid JSON

This commit is contained in:
jelhan 2015-08-23 19:04:58 +02:00
parent b9bef69977
commit 38eecd64ff
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ $I = new ApiTester($scenario);
$I->wantTo('see that create a new user fails if key knowledge header is not set');
$I->sendPOST('/users', $userJson);
$I->seeResponseCodeIs(500);
$I->seeResponseIsJson();
$I->seeResponseEquals('');
try {
$result = file_get_contents($usersDir . '0');

View file

@ -16,7 +16,7 @@ $I->wantTo('see that create a new user fails if key knowledge is wrong');
$I->haveHTTPHeader('X-Croodle-Proof-Key-Knowledge', $wrongKeyKnowledge);
$I->sendPOST('/users', $userJson);
$I->seeResponseCodeIs(500);
$I->seeResponseIsJson();
$I->seeResponseEquals('');
try {
$result = file_get_contents($usersDir . '0');