summaryrefslogtreecommitdiffstats
path: root/1212.patch
blob: fe6faae3372a99a2267ae601090d3a08fd368427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From badef9f195cb982f9fa6567923e95bd659733510 Mon Sep 17 00:00:00 2001
From: Ciaran McNulty <mail@ciaranmcnulty.com>
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]),