Skip to content
Snippets Groups Projects
Commit 27273331 authored by Thomas LE BERRE's avatar Thomas LE BERRE
Browse files

Revert "Merge pull request #45 from andypost/master"

This reverts commit 7384d93c, reversing
changes made to fc461097.

fopen behavior changed with PHP 8, but not PSR-17.
Function createStreamFromFile still NOT throw ValueError,
but only RuntimeException or InvalidArgumentException.
parent 7384d93c
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