Skip to content

Commit

Permalink
Merge branch '1.x' into 2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Jan 5, 2025
2 parents a526cd7 + 69025f6 commit c7016a5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/Polyfills/AssertIsTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,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.
*
Expand Down

0 comments on commit c7016a5

Please sign in to comment.