From badef9f195cb982f9fa6567923e95bd659733510 Mon Sep 17 00:00:00 2001 From: Ciaran McNulty Date: Sat, 4 Aug 2018 12:21:36 +0100 Subject: [PATCH 1/2] PHP 7.3 support --- .travis.yml | 1 + CHANGES-v5.md | 4 ++++ composer.json | 2 +- spec/PhpSpec/Matcher/IterateLikeMatcherSpec.php | 6 +----- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/spec/PhpSpec/Matcher/IterateLikeMatcherSpec.php b/spec/PhpSpec/Matcher/IterateLikeMatcherSpec.php index 7fb80638..4a36c0b4 100644 --- a/spec/PhpSpec/Matcher/IterateLikeMatcherSpec.php +++ b/spec/PhpSpec/Matcher/IterateLikeMatcherSpec.php @@ -68,11 +68,7 @@ function it_does_not_positive_match_generator_while_not_iterating_the_same() $second->foo = 'bar'; $this - ->shouldThrow(new SubjectElementDoesNotMatchException(0, '"0"', '"stdClass::__set_state(array( - \'foo\' => \'foo\', -))"', '"0"', '"stdClass::__set_state(array( - \'foo\' => \'bar\', -))"')) + ->shouldThrow(SubjectElementDoesNotMatchException::class) ->during('positiveMatch', [ 'iterateLike', $this->createGeneratorReturningArray([$first]),