File tree Expand file tree Collapse file tree 5 files changed +282
-272
lines changed Expand file tree Collapse file tree 5 files changed +282
-272
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Sorting single field, ascending, using the Cursor Iterator
3
3
--SKIPIF--
4
- <?php require __DIR__ . "/../utils/basic-skipif.inc " ; CLEANUP ( STANDALONE ) ?>
5
- <?php $ LIMIT = 100 ; require __DIR__ . " /../utils/fixtures-users.inc " ?>
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ; ?>
5
+ <?php CLEANUP ( STANDALONE ); LOAD ( STANDALONE ); ?>
6
6
--FILE--
7
7
<?php
8
8
require_once __DIR__ . "/../utils/basic.inc " ;
@@ -12,6 +12,7 @@ $manager = new MongoDB\Driver\Manager(STANDALONE);
12
12
$ query = new MongoDB \Driver \Query (array (), array (
13
13
'projection ' => array ('_id ' => 0 , 'username ' => 1 ),
14
14
'sort ' => array ('username ' => 1 ),
15
+ 'limit ' => 104 ,
15
16
));
16
17
17
18
$ cursor = $ manager ->executeQuery (NS , $ query );
@@ -24,104 +25,108 @@ foreach ($cursor as $document) {
24
25
===DONE===
25
26
<?php exit (0 ); ?>
26
27
--EXPECT--
28
+ aaliyah.kertzmann
29
+ aaron89
30
+ abbott.alden
31
+ abbott.flo
32
+ abby76
33
+ abernathy.adrienne
27
34
abernathy.audrey
35
+ abner.kreiger
36
+ aboehm
37
+ abshire.icie
38
+ abshire.jazlyn
39
+ adams.delta
40
+ adolph20
41
+ adonis.schamberger
42
+ agleason
43
+ ahartmann
44
+ ahettinger
45
+ akreiger
46
+ al.cormier
47
+ al97
48
+ albin95
28
49
alda.murray
50
+ alden.blanda
51
+ alessandra76
52
+ alex73
53
+ alexa01
54
+ alfred.ritchie
55
+ alia07
56
+ alia72
57
+ alize.hegmann
58
+ allie48
59
+ alta.sawayn
60
+ alvena.pacocha
61
+ alvis22
62
+ alycia48
63
+ amalia84
64
+ amely01
65
+ amos.corkery
66
+ amos78
67
+ anahi95
68
+ anais.feest
69
+ anais58
29
70
andreanne.steuber
71
+ angela.dickinson
72
+ angelina.bartoletti
73
+ angelina31
74
+ aniyah.franecki
75
+ annalise40
76
+ antoinette.gaylord
77
+ antoinette.weissnat
78
+ aoberbrunner
79
+ apacocha
80
+ apollich
81
+ ara92
82
+ arch44
83
+ arely.ryan
84
+ armstrong.clara
30
85
armstrong.gordon
86
+ arnold.kiehn
87
+ arvel.hilll
88
+ asatterfield
31
89
aschuppe
90
+ ashlynn71
91
+ ashlynn85
32
92
ashton.o'kon
93
+ austen03
94
+ austen47
95
+ austin67
96
+ awintheiser
97
+ awyman
98
+ ayana.brakus
99
+ bailey.mertz
100
+ bailey.sarina
33
101
balistreri.donald
102
+ barrett.prohaska
34
103
bartell.susie
104
+ bashirian.lina
105
+ bayer.ova
106
+ baylee.maggio
107
+ bbernier
108
+ bblick
35
109
beahan.oleta
110
+ beatty.layne
111
+ beatty.myrtis
112
+ beau49
113
+ beaulah.mann
114
+ bechtelar.nadia
115
+ becker.theron
116
+ beer.mossie
117
+ beer.roselyn
118
+ benedict.johnson
119
+ berge.enoch
36
120
bergnaum.roberto
37
- camilla20
38
- cartwright.garland
39
- chance.conroy
40
- crona.jaclyn
41
- cronin.clint
42
- dereck.ward
43
- dhudson
44
- doyle.nelle
45
- dwolf
46
- ebert.cordie
47
- ebony59
48
- edibbert
49
- eldora.steuber
50
- eliseo49
51
- ernser.addison
52
- ervin.carter
53
- farrell.asha
54
- ford85
55
- fosinski
56
- german.leffler
57
- gladyce88
58
- haley.krystel
59
- hartmann.dedrick
60
- helene.o'connell
61
- isac13
62
- jailyn62
63
- jamaal.cassin
64
- janelle93
65
- javier.volkman
66
- javier13
67
- jazmyne63
68
- jessika.schmeler
69
- jessy16
70
- jfeest
71
- jschinner
72
- justina63
73
- kattie12
74
- keebler.rupert
75
- kelvin.jakubowski
76
- khills
77
- koch.sophia
78
- lmckenzie
79
- lonnie.little
80
- lonnie10
81
- lubowitz.colleen
82
- lucio20
83
- mante.ashlee
84
- marietta.swift
85
- marlene95
86
- mraz.marcelina
87
- myra43
88
- nayeli.vandervort
89
- ngoldner
90
- npurdy
91
- o'conner.arthur
92
- odell96
93
- ohowe
94
- orn.katelyn
95
- pacocha.quentin
96
- qkunze
97
- qschiller
98
- rau.brent
99
- rodger.raynor
100
- sawayn.catharine
101
- shyann28
102
- spencer.darrel
103
- ssteuber
104
- swyman
105
- tabitha.mohr
106
- talon74
107
- thalia22
108
- von.britney
109
- vrolfson
110
- vwaters
111
- walker.alec
112
- walter.lester
113
- west.jude
114
- wisozk.cortez
115
- witting.chris
116
- wschaefer
117
- wschimmel
118
- wwilkinson
119
- xgibson
120
- yasmin55
121
- yhudson
122
- yost.ari
123
- yost.magali
124
- ypredovic
125
- ywyman
126
- zstanton
121
+ bernardo.mccullough
122
+ bernardo52
123
+ bernhard.margaretta
124
+ bernie.morissette
125
+ bethel20
126
+ betty09
127
+ bins.aliyah
128
+ bins.laisha
129
+ bjori
130
+ blanda.danielle
131
+ blanda.irving
127
132
===DONE===
Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Sorting single field, ascending, using the Cursor Iterator
3
3
--SKIPIF--
4
- <?php require __DIR__ . "/../utils/basic-skipif.inc " ; CLEANUP ( STANDALONE ) ?>
5
- <?php require __DIR__ . " /../utils/fixtures-users.inc " ?>
4
+ <?php require __DIR__ . "/../utils/basic-skipif.inc " ; ?>
5
+ <?php CLEANUP ( STANDALONE ); LOAD ( STANDALONE ); ?>
6
6
--FILE--
7
7
<?php
8
8
require_once __DIR__ . "/../utils/basic.inc " ;
@@ -24,6 +24,7 @@ var_dump(
24
24
$ cursorid ,
25
25
$ s1
26
26
);
27
+ var_dump ($ s1 > 0 );
27
28
28
29
?>
29
30
===DONE===
@@ -34,4 +35,5 @@ object(MongoDB\Driver\CursorId)#%d (%d) {
34
35
%s(%d)
35
36
}
36
37
string(%d) "%d"
38
+ bool(true)
37
39
===DONE===
You can’t perform that action at this time.
0 commit comments