@@ -748,11 +748,11 @@ public function testParseTypeInt64With32BitIntegerInPhp32Bit()
748
748
$ formatter = $ this ->getNumberFormatter ('en ' , NumberFormatter::DECIMAL );
749
749
750
750
$ parsedValue = $ formatter ->parse ('2,147,483,647 ' , NumberFormatter::TYPE_INT64 );
751
- $ this ->assertInternalType ( ' integer ' , $ parsedValue );
751
+ $ this ->assertIsInt ( $ parsedValue );
752
752
$ this ->assertEquals (2147483647 , $ parsedValue );
753
753
754
754
$ parsedValue = $ formatter ->parse ('-2,147,483,648 ' , NumberFormatter::TYPE_INT64 );
755
- $ this ->assertInternalType ( ' int ' , $ parsedValue );
755
+ $ this ->assertIsInt ( $ parsedValue );
756
756
$ this ->assertEquals (-2147483648 , $ parsedValue );
757
757
}
758
758
@@ -763,11 +763,11 @@ public function testParseTypeInt64With32BitIntegerInPhp64Bit()
763
763
$ formatter = $ this ->getNumberFormatter ('en ' , NumberFormatter::DECIMAL );
764
764
765
765
$ parsedValue = $ formatter ->parse ('2,147,483,647 ' , NumberFormatter::TYPE_INT64 );
766
- $ this ->assertInternalType ( ' integer ' , $ parsedValue );
766
+ $ this ->assertIsInt ( $ parsedValue );
767
767
$ this ->assertEquals (2147483647 , $ parsedValue );
768
768
769
769
$ parsedValue = $ formatter ->parse ('-2,147,483,648 ' , NumberFormatter::TYPE_INT64 );
770
- $ this ->assertInternalType ( ' integer ' , $ parsedValue );
770
+ $ this ->assertIsInt ( $ parsedValue );
771
771
$ this ->assertEquals (-2147483647 - 1 , $ parsedValue );
772
772
}
773
773
@@ -782,11 +782,11 @@ public function testParseTypeInt64With64BitIntegerInPhp32Bit()
782
782
783
783
// int 64 using only 32 bit range strangeness
784
784
$ parsedValue = $ formatter ->parse ('2,147,483,648 ' , NumberFormatter::TYPE_INT64 );
785
- $ this ->assertInternalType ( ' float ' , $ parsedValue );
785
+ $ this ->assertIsFloat ( $ parsedValue );
786
786
$ this ->assertEquals (2147483648 , $ parsedValue , '->parse() TYPE_INT64 does not use true 64 bit integers, using only the 32 bit range. ' );
787
787
788
788
$ parsedValue = $ formatter ->parse ('-2,147,483,649 ' , NumberFormatter::TYPE_INT64 );
789
- $ this ->assertInternalType ( ' float ' , $ parsedValue );
789
+ $ this ->assertIsFloat ( $ parsedValue );
790
790
$ this ->assertEquals (-2147483649 , $ parsedValue , '->parse() TYPE_INT64 does not use true 64 bit integers, using only the 32 bit range. ' );
791
791
}
792
792
@@ -800,12 +800,12 @@ public function testParseTypeInt64With64BitIntegerInPhp64Bit()
800
800
$ formatter = $ this ->getNumberFormatter ('en ' , NumberFormatter::DECIMAL );
801
801
802
802
$ parsedValue = $ formatter ->parse ('2,147,483,648 ' , NumberFormatter::TYPE_INT64 );
803
- $ this ->assertInternalType ( ' integer ' , $ parsedValue );
803
+ $ this ->assertIsInt ( $ parsedValue );
804
804
805
805
$ this ->assertEquals (2147483648 , $ parsedValue , '->parse() TYPE_INT64 uses true 64 bit integers (PHP >= 5.3.14 and PHP >= 5.4.4). ' );
806
806
807
807
$ parsedValue = $ formatter ->parse ('-2,147,483,649 ' , NumberFormatter::TYPE_INT64 );
808
- $ this ->assertInternalType ( ' integer ' , $ parsedValue );
808
+ $ this ->assertIsInt ( $ parsedValue );
809
809
810
810
$ this ->assertEquals (-2147483649 , $ parsedValue , '->parse() TYPE_INT64 uses true 64 bit integers (PHP >= 5.3.14 and PHP >= 5.4.4). ' );
811
811
}
0 commit comments