From 0e5a4ef15c3d22a9f5e1b88a6c6652cfe37ab378 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 11 Feb 2022 14:26:24 +0100 Subject: [PATCH] php 8 seems to behave the same as php 7 - maybe it was a regression in php 8 previews that got fixed before stable? --- spec/Encoding/FilteredStreamStubSpec.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) 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)