Skip to content

Commit

Permalink
Raven_Tests_ClientTest::testEncode small split check
Browse files Browse the repository at this point in the history
  • Loading branch information
nokitakaze committed Feb 14, 2017
1 parent 6697ddf commit d7fd83c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/Raven/Tests/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1753,11 +1753,13 @@ public function testEncode()
$value = $client->encode($data);
$this->assertRegExp('_^[a-zA-Z0-9/=]+$_', $value);
$decoded = base64_decode($value);
$this->assertInternalType('string', $decoded, 'Can not use base64 decode on the encoded blob');
if (function_exists("gzcompress")) {
$decoded = gzuncompress($decoded);
$this->assertEquals($json_stringify, $decoded, 'Can not decompress compressed blob');
} else {
$this->assertEquals($json_stringify, $decoded);
}

$this->assertEquals($json_stringify, $decoded);
}

/**
Expand Down

0 comments on commit d7fd83c

Please sign in to comment.