diff --git a/test/StreamFactoryTestCase.php b/test/StreamFactoryTestCase.php index 58828b4..ce899e5 100644 --- a/test/StreamFactoryTestCase.php +++ b/test/StreamFactoryTestCase.php @@ -2,6 +2,7 @@ namespace Interop\Http\Factory; +use Exception; use InvalidArgumentException; use RuntimeException; use PHPUnit\Framework\TestCase; @@ -119,7 +120,7 @@ public function testCreateStreamFromFileWithNoMode() { $filename = $this->createTemporaryFile(); - $this->expectException(InvalidArgumentException::class); + $this->expectException(Exception::class); $stream = $this->factory->createStreamFromFile($filename, ''); } @@ -127,7 +128,7 @@ public function testCreateStreamFromFileWithInvalidMode() { $filename = $this->createTemporaryFile(); - $this->expectException(InvalidArgumentException::class); + $this->expectException(Exception::class); $stream = $this->factory->createStreamFromFile($filename, "\u{2620}"); }