This repository was archived by the owner on Mar 5, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
tests/TestCase/View/Helper Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments