Skip to content
This repository was archived by the owner on Mar 5, 2022. It is now read-only.

Commit a5402fe

Browse files
committed
Merge pull request #117 from burzum/fixing-tests
Testing 64 vs 32bit
2 parents 4a7e2ea + 8d4d330 commit a5402fe

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/TestCase/View/Helper/ImageHelperTest.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,18 @@ public function testImage() {
8585
EventManager::instance()->on($this->listeners['LegacyLocalFileStorageListener']);
8686

8787
$result = $this->Image->display($image, 't150');
88-
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/>');
88+
if (PHP_INT_SIZE === 8) {
89+
$this->assertEquals($result, '<img src="/img/images/10/21/10/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/>');
90+
} else {
91+
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.c3f33c2a.jpg" alt=""/>');
92+
}
8993

9094
$result = $this->Image->display($image);
91-
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
95+
if (PHP_INT_SIZE === 8) {
96+
$this->assertEquals($result, '<img src="/img/images/10/21/10/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
97+
} else {
98+
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
99+
}
92100

93101
// Testing the LocalListener
94102
$this->_removeListeners();

0 commit comments

Comments
 (0)