Skip to content

Commit

Permalink
Method assertInternalType is deprecated
Browse files Browse the repository at this point in the history
Create a mock for the `assertInternalType` method which is removed from PHPUnit. See also sebastianbergmann/phpunit#3369
  • Loading branch information
jissereitsma authored Aug 12, 2024
1 parent 7b948c2 commit a4a5b0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Test/BaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,9 @@ public function getPartialObject($object, $arguments = [], $mockMethods = [])

return $mock;
}

protected function assertInternalType(string $type, $value)
{
$this->assertEquals($type, gettype($value));
}
}

0 comments on commit a4a5b0d

Please sign in to comment.