Skip to content

Commit 7043152

Browse files
committed
Fix assertInternalType deprecation in phpunit 9
1 parent 13ab635 commit 7043152

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)