From a4a5b0d5ea239410ce372ac6ef6b9d76a045374e Mon Sep 17 00:00:00 2001 From: Jisse Reitsma Date: Mon, 12 Aug 2024 11:51:30 +0200 Subject: [PATCH] Method assertInternalType is deprecated Create a mock for the `assertInternalType` method which is removed from PHPUnit. See also https://github.com/sebastianbergmann/phpunit/issues/3369 --- Test/BaseTest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Test/BaseTest.php b/Test/BaseTest.php index b1be7a17f..7f0f5c022 100644 --- a/Test/BaseTest.php +++ b/Test/BaseTest.php @@ -257,4 +257,9 @@ public function getPartialObject($object, $arguments = [], $mockMethods = []) return $mock; } + + protected function assertInternalType(string $type, $value) + { + $this->assertEquals($type, gettype($value)); + } }