diff --git a/test/StreamFactoryTestCase.php b/test/StreamFactoryTestCase.php index be281765beb6ff76a2297552e00bc787cef8558c..ce899e540c1e9270a9d0ce11a3b0b44a1b0194ae 100644 --- a/test/StreamFactoryTestCase.php +++ b/test/StreamFactoryTestCase.php @@ -8,7 +8,6 @@ use RuntimeException; use PHPUnit\Framework\TestCase; use Psr\Http\Message\StreamFactoryInterface; use Psr\Http\Message\StreamInterface; -use ValueError; abstract class StreamFactoryTestCase extends TestCase { @@ -92,7 +91,7 @@ abstract class StreamFactoryTestCase extends TestCase public function testCreateStreamFromInvalidFileName() { - $this->expectException(PHP_VERSION_ID >= 80000 ? ValueError::class : RuntimeException::class); + $this->expectException(RuntimeException::class); $stream = $this->factory->createStreamFromFile(''); }