File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
8
8
9
9
(Nothing yet)
10
10
11
+ ## [ 0.9.1] - 2020-05-13
12
+
13
+ ### Fixed
14
+
15
+ - Fixed generator introduced in 0.9.0.
16
+
11
17
## [ 0.9.0] - 2020-05-13
12
18
13
19
### Changed
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ public function it_supports_resumption(Client $almaClient)
71
71
SpecHelper::getDummyData ('analytics_response_part3.xml ' )
72
72
);
73
73
74
- $ this ->count ()-> shouldBe (150 + 150 + 88 );
74
+ $ this ->shouldHaveCount (150 + 150 + 88 );
75
75
}
76
76
77
77
public function it_might_not_exist (Client $ almaClient )
Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ trait PaginatedListGenerator
16
16
*/
17
17
public function rewind ()
18
18
{
19
- throw new \Exception ('Cannot rewind a generator that was already run ' );
19
+ if ($ this ->position > 0 ) {
20
+ throw new \Exception ('Cannot rewind a generator that was already run ' );
21
+ }
20
22
}
21
23
22
24
/**
You can’t perform that action at this time.
0 commit comments