Skip to content

Commit 1ca05db

Browse files
authored
Merge pull request #148 from php-http/fix-php8-test
php 8 seems to behave the same as php 7
2 parents 0d8df2b + 0e5a4ef commit 1ca05db

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Diff for: spec/Encoding/FilteredStreamStubSpec.php

+2-10
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)