From 7c92da024352261c0c5a9cfef59b9785eb5bd2d2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 27 Mar 2019 12:53:04 +0100 Subject: [PATCH] don't run with 64-bit data on 32-bit build --- .../Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php b/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php index 5f5f24e29..f8acd4146 100644 --- a/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php +++ b/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php @@ -14,7 +14,9 @@ public function testFormatBytes() : void self::assertSame('1000', BytesFormatter::formatBytes(1000)); self::assertSame('97.66K', BytesFormatter::formatBytes(100000)); self::assertSame('9.54M', BytesFormatter::formatBytes(10000000)); - self::assertSame('93.13G', BytesFormatter::formatBytes(100000000000)); - self::assertSame('90.95T', BytesFormatter::formatBytes(100000000000000)); + if (PHP_INT_SIZE > 4) { + self::assertSame('93.13G', BytesFormatter::formatBytes(100000000000)); + self::assertSame('90.95T', BytesFormatter::formatBytes(100000000000000)); + } } }