PHPUnit 9.3.0 introduces two new assertions Assert::assertIsClosedResource() and Assert::assertIsNotClosedResource().
Polyfilling these would be challenging to say the least, as the PHP native functionality used to determine whether a resource is closed or not only became available in PHP 7.2.
Refs:
PHPUnit 9.3.0 introduces two new assertions
Assert::assertIsClosedResource()andAssert::assertIsNotClosedResource().Polyfilling these would be challenging to say the least, as the PHP native functionality used to determine whether a resource is closed or not only became available in PHP 7.2.
Refs: