diff --git a/spec/Encoding/FilteredStreamStubSpec.php b/spec/Encoding/FilteredStreamStubSpec.php index 7e3f3f6..6e6692e 100644 --- a/spec/Encoding/FilteredStreamStubSpec.php +++ b/spec/Encoding/FilteredStreamStubSpec.php @@ -12,22 +12,14 @@ function it_throws_during_instantiation_with_invalid_read_filter_options(StreamI { $this->beAnInstanceOf('spec\Http\Message\Encoding\FilteredStreamStub'); $this->beConstructedWith($stream, 'foo'); - if (\PHP_MAJOR_VERSION < 8) { - $this->shouldThrow('RuntimeException')->duringInstantiation(); - } else { - $this->shouldThrow('PhpSpec\Exception\Example\ErrorException')->duringInstantiation(); - } + $this->shouldThrow('RuntimeException')->duringInstantiation(); } function it_throws_during_instantiation_with_invalid_write_filter_options(StreamInterface $stream) { $this->beAnInstanceOf('spec\Http\Message\Encoding\FilteredStreamStub'); $this->beConstructedWith($stream, null, 'foo'); - if (\PHP_MAJOR_VERSION < 8) { - $this->shouldThrow('RuntimeException')->duringInstantiation(); - } else { - $this->shouldThrow('PhpSpec\Exception\Example\ErrorException')->duringInstantiation(); - } + $this->shouldThrow('RuntimeException')->duringInstantiation(); } function let(StreamInterface $stream)