Skip to content

Commit

Permalink
Bug: 14532 Fix this test for 32bit systems also.
Browse files Browse the repository at this point in the history
I don't have the client I used to generate the base64 string for this
test any longer, so use a slight hack to make sure the value is taken
as a 32bit unsigned int even though PHP stores it internally as signed.
  • Loading branch information
mrubinsk committed Dec 3, 2016
1 parent fa72f5d commit effd35c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/ActiveSync/test/Horde/ActiveSync/UtilsTest.php
Expand Up @@ -28,14 +28,15 @@ public function testBase64Uri()
/* Smart Forward */
$url = 'eQIJBBCuTs0Z9ZK6Vldwb/dM8JusBHVeHIQDUFBDBwEBAwYxMTkyODEBBUlOQk9Y';
$results = Horde_ActiveSync_Utils::decodeBase64($url);
$results['PolicyKey'] = sprintf('%u', $results['PolicyKey']);

// This is binary data, test it separately.
$fixture = array(
'ProtVer' => '12.1',
'Cmd' => 'SmartForward',
'Locale' => 1033,
'DeviceId' => 'ae4ecd19f592ba5657706ff74cf09bac',
'PolicyKey' => 2216451701,
'PolicyKey' => '2216451701',
'DeviceType' => 'PPC',
'ItemId' => '119281',
'CollectionId' => 'INBOX',
Expand Down

0 comments on commit effd35c

Please sign in to comment.