Skip to content

Commit

Permalink
Make tests compatible with PHPUnit version 9.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fredden committed Feb 27, 2023
1 parent 282533b commit 1e21c2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function testGuessExtJson(): void
$this->markTestSkipped('extension json is not available');
}

$result = $this->guesser->__invoke('json_decode');
$result = iterator_to_array($this->guesser->__invoke('json_decode'));
$this->assertNotEmpty($result);
$this->assertContains('ext-json', $result);
}
Expand All @@ -40,7 +40,7 @@ public function testCoreExtensionsResolvesToPHP(): void
{
$options = new Options(['php-core-extensions' => ['SPL', 'something-else']]);
$this->guesser = new DependencyGuesser($options);
$result = $this->guesser->__invoke('RecursiveDirectoryIterator');
$result = iterator_to_array($this->guesser->__invoke('RecursiveDirectoryIterator'));
$this->assertNotEmpty($result);
$this->assertContains('php', $result);
}
Expand Down

0 comments on commit 1e21c2b

Please sign in to comment.