Skip to content

Commit

Permalink
Only look for directories when loading snapshot test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Feb 7, 2025
1 parent 2aa7235 commit 524796e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ static function ( JsonSerializable $item ) {
*/
public function load_snapshot_test_cases( string $directory ): array {
$test_cases = array();
foreach ( (array) glob( $directory . '/*' ) as $test_case ) {
foreach ( (array) glob( $directory . '/*', GLOB_ONLYDIR ) as $test_case ) {

/**
* Test case directory.
*
Expand Down

0 comments on commit 524796e

Please sign in to comment.