File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -12,22 +12,14 @@ function it_throws_during_instantiation_with_invalid_read_filter_options(StreamI
12
12
{
13
13
$ this ->beAnInstanceOf ('spec\Http\Message\Encoding\FilteredStreamStub ' );
14
14
$ this ->beConstructedWith ($ stream , 'foo ' );
15
- if (\PHP_MAJOR_VERSION < 8 ) {
16
- $ this ->shouldThrow ('RuntimeException ' )->duringInstantiation ();
17
- } else {
18
- $ this ->shouldThrow ('PhpSpec\Exception\Example\ErrorException ' )->duringInstantiation ();
19
- }
15
+ $ this ->shouldThrow ('RuntimeException ' )->duringInstantiation ();
20
16
}
21
17
22
18
function it_throws_during_instantiation_with_invalid_write_filter_options (StreamInterface $ stream )
23
19
{
24
20
$ this ->beAnInstanceOf ('spec\Http\Message\Encoding\FilteredStreamStub ' );
25
21
$ this ->beConstructedWith ($ stream , null , 'foo ' );
26
- if (\PHP_MAJOR_VERSION < 8 ) {
27
- $ this ->shouldThrow ('RuntimeException ' )->duringInstantiation ();
28
- } else {
29
- $ this ->shouldThrow ('PhpSpec\Exception\Example\ErrorException ' )->duringInstantiation ();
30
- }
22
+ $ this ->shouldThrow ('RuntimeException ' )->duringInstantiation ();
31
23
}
32
24
33
25
function let (StreamInterface $ stream )
You can’t perform that action at this time.
0 commit comments