Skip to content

Commit ce4194e

Browse files
minor #32857 [PhpUnitBridge] Fix deprecation assertInternalType - 4.3 (jderusse)
This PR was merged into the 4.3 branch. Discussion ---------- [PhpUnitBridge] Fix deprecation assertInternalType - 4.3 | Q | A | ------------- | --- | Branch? | 4.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #32844 | License | MIT | Doc PR | NA This PR fixes PhpUnit deprecation : > assertInternalType() is deprecated and will be removed in PHPUnit 9. Refactor your test to use assertIsArray(), assertIsBool(), assertIsFloat(), assertIsInt(), assertIsNumeric(), assertIsObject(), assertIsResource(), assertIsString(), assertIsScalar(), assertIsCallable(), or assertIsIterable() instead follow #32846 for 4.3 branch Commits ------- aa58789542 Fix assertInternalType deprecation in phpunit 9
2 parents 6ae4d9d + 7043152 commit ce4194e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Tests/CurrenciesTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,16 @@
1111

1212
namespace Symfony\Component\Intl\Tests;
1313

14+
use Symfony\Bridge\PhpUnit\ForwardCompatTestTrait;
1415
use Symfony\Component\Intl\Currencies;
1516

1617
/**
1718
* @group intl-data
1819
*/
1920
class CurrenciesTest extends ResourceBundleTestCase
2021
{
22+
use ForwardCompatTestTrait;
23+
2124
// The below arrays document the state of the ICU data bundled with this package.
2225

2326
private static $currencies = [
@@ -693,7 +696,7 @@ public function testGetFractionDigits($currency)
693696
*/
694697
public function testGetRoundingIncrement($currency)
695698
{
696-
$this->assertInternalType('numeric', Currencies::getRoundingIncrement($currency));
699+
$this->assertIsNumeric(Currencies::getRoundingIncrement($currency));
697700
}
698701

699702
public function provideCurrenciesWithNumericEquivalent()

0 commit comments

Comments
 (0)