File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Interop \Http \Factory ;
4
4
5
+ use Exception ;
5
6
use InvalidArgumentException ;
6
7
use RuntimeException ;
7
8
use PHPUnit \Framework \TestCase ;
@@ -119,15 +120,15 @@ public function testCreateStreamFromFileWithNoMode()
119
120
{
120
121
$ filename = $ this ->createTemporaryFile ();
121
122
122
- $ this ->expectException (InvalidArgumentException ::class);
123
+ $ this ->expectException (Exception ::class);
123
124
$ stream = $ this ->factory ->createStreamFromFile ($ filename , '' );
124
125
}
125
126
126
127
public function testCreateStreamFromFileWithInvalidMode ()
127
128
{
128
129
$ filename = $ this ->createTemporaryFile ();
129
130
130
- $ this ->expectException (InvalidArgumentException ::class);
131
+ $ this ->expectException (Exception ::class);
131
132
$ stream = $ this ->factory ->createStreamFromFile ($ filename , "\u{2620}" );
132
133
}
133
134
You can’t perform that action at this time.
0 commit comments