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

Merge pull request #46 from t0mmy742/no-value-error-streamfactorytests

StreamFactoryInterface::createStreamFromFile does NOT throw ValueError on PHP 8
parents 7384d93c 27273331
No related branches found
No related tags found
No related merge requests found
......@@ -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('');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment