diff --git a/tests/Polyfills/AssertIsTypeTest.php b/tests/Polyfills/AssertIsTypeTest.php index 9b859b2..9c0529b 100644 --- a/tests/Polyfills/AssertIsTypeTest.php +++ b/tests/Polyfills/AssertIsTypeTest.php @@ -80,6 +80,18 @@ public function testAssertIsResource() { \closedir( $resource ); } + /** + * Verify assertIsResource() method handles closed resources correctly. + * + * @return void + */ + public function testAssertIsResourceAllowsForClosedResources() { + $resource = \opendir( __DIR__ ); + \closedir( $resource ); + + $this->assertIsResource( $resource ); + } + /** * Verify availability of the assertIsArray() method. *