Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
b42924e6
Commit
b42924e6
authored
Jun 25, 2019
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #628
parents
b19328ac
45a59ae9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
WatchFunctionalTest.php
tests/Operation/WatchFunctionalTest.php
+5
-4
No files found.
tests/Operation/WatchFunctionalTest.php
View file @
b42924e6
...
@@ -398,11 +398,11 @@ class WatchFunctionalTest extends FunctionalTestCase
...
@@ -398,11 +398,11 @@ class WatchFunctionalTest extends FunctionalTestCase
$this
->
insertDocument
([
'_id'
=>
1
]);
$this
->
insertDocument
([
'_id'
=>
1
]);
/* Killing the cursor a
second time
when there is a result will test
/* Killing the cursor a
nd advancing
when there is a result will test
* that
the
resume attempt picks up the latest change. */
* that
next()'s
resume attempt picks up the latest change. */
$this
->
killChangeStreamCursor
(
$changeStream
);
$this
->
killChangeStreamCursor
(
$changeStream
);
$changeStream
->
rewind
();
$changeStream
->
next
();
$this
->
assertTrue
(
$changeStream
->
valid
());
$this
->
assertTrue
(
$changeStream
->
valid
());
$this
->
assertSame
(
0
,
$changeStream
->
key
());
$this
->
assertSame
(
0
,
$changeStream
->
key
());
...
@@ -418,7 +418,8 @@ class WatchFunctionalTest extends FunctionalTestCase
...
@@ -418,7 +418,8 @@ class WatchFunctionalTest extends FunctionalTestCase
/* Killing the cursor a second time will not trigger a resume until
/* Killing the cursor a second time will not trigger a resume until
* ChangeStream::next() is called. A successive call to rewind() should
* ChangeStream::next() is called. A successive call to rewind() should
* not change the iterator's state and preserve the current result. */
* not change the iterator's state and preserve the current result.
* Note: PHPLIB-448 may require this rewind() to throw an exception. */
$this
->
killChangeStreamCursor
(
$changeStream
);
$this
->
killChangeStreamCursor
(
$changeStream
);
$changeStream
->
rewind
();
$changeStream
->
rewind
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment