Skip to content

Commit 01f4a63

Browse files
committed
Fix assertInternalType deprecation in phpunit 9
1 parent 2cf8904 commit 01f4a63

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Tests/CacheWarmer/SerializerCacheWarmerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function testWarmUp()
5050

5151
$values = $fallbackPool->getValues();
5252

53-
$this->assertInternalType('array', $values);
53+
$this->assertIsArray($values);
5454
$this->assertCount(2, $values);
5555
$this->assertArrayHasKey('Symfony_Bundle_FrameworkBundle_Tests_Fixtures_Serialization_Person', $values);
5656
$this->assertArrayHasKey('Symfony_Bundle_FrameworkBundle_Tests_Fixtures_Serialization_Author', $values);
@@ -74,7 +74,7 @@ public function testWarmUpWithoutLoader()
7474

7575
$values = $fallbackPool->getValues();
7676

77-
$this->assertInternalType('array', $values);
77+
$this->assertIsArray($values);
7878
$this->assertCount(0, $values);
7979
}
8080
}

Tests/CacheWarmer/ValidatorCacheWarmerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testWarmUp()
4646

4747
$values = $fallbackPool->getValues();
4848

49-
$this->assertInternalType('array', $values);
49+
$this->assertIsArray($values);
5050
$this->assertCount(2, $values);
5151
$this->assertArrayHasKey('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Person', $values);
5252
$this->assertArrayHasKey('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Author', $values);
@@ -77,7 +77,7 @@ public function testWarmUpWithAnnotations()
7777

7878
$values = $fallbackPool->getValues();
7979

80-
$this->assertInternalType('array', $values);
80+
$this->assertIsArray($values);
8181
$this->assertCount(2, $values);
8282
$this->assertArrayHasKey('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.Category', $values);
8383
$this->assertArrayHasKey('Symfony.Bundle.FrameworkBundle.Tests.Fixtures.Validation.SubCategory', $values);
@@ -99,7 +99,7 @@ public function testWarmUpWithoutLoader()
9999

100100
$values = $fallbackPool->getValues();
101101

102-
$this->assertInternalType('array', $values);
102+
$this->assertIsArray($values);
103103
$this->assertCount(0, $values);
104104
}
105105
}

Tests/Functional/ProfilerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function testProfilerIsDisabled($insulate)
3030
$client->enableProfiler();
3131
$this->assertFalse($client->getProfile());
3232
$client->request('GET', '/profiler');
33-
$this->assertInternalType('object', $client->getProfile());
33+
$this->assertIsObject($client->getProfile());
3434

3535
$client->request('GET', '/profiler');
3636
$this->assertFalse($client->getProfile());

0 commit comments

Comments
 (0)