Skip to content
Snippets Groups Projects
Unverified Commit 7384d93c authored by Woody Gilk's avatar Woody Gilk Committed by GitHub
Browse files

Merge pull request #45 from andypost/master

Fix PHP 8.0 expectations for fopen()
parents fc461097 4c321296
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ use RuntimeException;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\StreamFactoryInterface;
use Psr\Http\Message\StreamInterface;
use ValueError;
abstract class StreamFactoryTestCase extends TestCase
{
......@@ -91,7 +92,7 @@ abstract class StreamFactoryTestCase extends TestCase
public function testCreateStreamFromInvalidFileName()
{
$this->expectException(RuntimeException::class);
$this->expectException(PHP_VERSION_ID >= 80000 ? ValueError::class : RuntimeException::class);
$stream = $this->factory->createStreamFromFile('');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment