Skip to content

Commit f613668

Browse files
committed
fix File constraint tests on 32bit PHP
1 parent d48b2a3 commit f613668

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Tests/Constraints/FileTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ public static function provideValidSizes()
101101
['3M', 3000000, false],
102102
['1gi', 1073741824, true],
103103
['1GI', 1073741824, true],
104-
['4g', 4000000000, false],
105-
['4G', 4000000000, false],
104+
['2g', 2000000000, false],
105+
['2G', 2000000000, false],
106+
['4g', 4 === \PHP_INT_SIZE ? '4000000000' : 4000000000, false],
107+
['4G', 4 === \PHP_INT_SIZE ? '4000000000' : 4000000000, false],
106108
];
107109
}
108110

0 commit comments

Comments
 (0)