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

Commit

Permalink
Merge pull request #117 from burzum/fixing-tests
Browse files Browse the repository at this point in the history
Testing 64 vs 32bit
  • Loading branch information
burzum committed Dec 13, 2015
2 parents 4a7e2ea + 8d4d330 commit a5402fe
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions tests/TestCase/View/Helper/ImageHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,18 @@ public function testImage() {
EventManager::instance()->on($this->listeners['LegacyLocalFileStorageListener']);

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

$result = $this->Image->display($image);
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
if (PHP_INT_SIZE === 8) {
$this->assertEquals($result, '<img src="/img/images/10/21/10/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
} else {
$this->assertEquals($result, '<img src="/img/images/86/51/86/e479b480f60b11e1a21f0800200c9a66/e479b480f60b11e1a21f0800200c9a66.jpg" alt=""/>');
}

// Testing the LocalListener
$this->_removeListeners();
Expand Down

0 comments on commit a5402fe

Please sign in to comment.