From fe894c2154e6b013f0d0b29ca660ad719fd1affe Mon Sep 17 00:00:00 2001 From: Andrea Faulds Date: Fri, 1 Aug 2014 17:01:17 +0100 Subject: [PATCH] PHP_INT_MIN and _MAX tests --- tests/lang/constants/PHP_INT_32bit.phpt | 17 +++++++++++++++++ tests/lang/constants/PHP_INT_64bit.phpt | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 tests/lang/constants/PHP_INT_32bit.phpt create mode 100644 tests/lang/constants/PHP_INT_64bit.phpt diff --git a/tests/lang/constants/PHP_INT_32bit.phpt b/tests/lang/constants/PHP_INT_32bit.phpt new file mode 100644 index 0000000000..0c85d9719b --- /dev/null +++ b/tests/lang/constants/PHP_INT_32bit.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (32-bit) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(-2147483648) +int(2147483647) +int(4) \ No newline at end of file diff --git a/tests/lang/constants/PHP_INT_64bit.phpt b/tests/lang/constants/PHP_INT_64bit.phpt new file mode 100644 index 0000000000..4b7da3a3e9 --- /dev/null +++ b/tests/lang/constants/PHP_INT_64bit.phpt @@ -0,0 +1,17 @@ +--TEST-- +Test PHP_INT_MIN, PHP_INT_MAX and PHP_INT_SIZE (64-bit) +--SKIPIF-- + +--FILE-- + +--EXPECT-- +int(-9223372036854775808) +int(9223372036854775807) +int(8) \ No newline at end of file -- 2.50.1