File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 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
1212 {
1313 $ this ->beAnInstanceOf ('spec\Http\Message\Encoding\FilteredStreamStub ' );
1414 $ 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 ();
2016 }
2117
2218 function it_throws_during_instantiation_with_invalid_write_filter_options (StreamInterface $ stream )
2319 {
2420 $ this ->beAnInstanceOf ('spec\Http\Message\Encoding\FilteredStreamStub ' );
2521 $ 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 ();
3123 }
3224
3325 function let (StreamInterface $ stream )
You can’t perform that action at this time.
0 commit comments