Skip to content

Commit ec91b77

Browse files
committed
PHPC-247: Use the bundled pregenerated fixtures
1 parent a52b775 commit ec91b77

File tree

5 files changed

+282
-272
lines changed

5 files changed

+282
-272
lines changed

tests/functional/cursor-001.phpt

Lines changed: 97 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--TEST--
22
Sorting single field, ascending, using the Cursor Iterator
33
--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); ?>
66
--FILE--
77
<?php
88
require_once __DIR__ . "/../utils/basic.inc";
@@ -12,6 +12,7 @@ $manager = new MongoDB\Driver\Manager(STANDALONE);
1212
$query = new MongoDB\Driver\Query(array(), array(
1313
'projection' => array('_id' => 0, 'username' => 1),
1414
'sort' => array('username' => 1),
15+
'limit' => 104,
1516
));
1617

1718
$cursor = $manager->executeQuery(NS, $query);
@@ -24,104 +25,108 @@ foreach ($cursor as $document) {
2425
===DONE===
2526
<?php exit(0); ?>
2627
--EXPECT--
28+
aaliyah.kertzmann
29+
aaron89
30+
abbott.alden
31+
abbott.flo
32+
abby76
33+
abernathy.adrienne
2734
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
2849
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
2970
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
3085
armstrong.gordon
86+
arnold.kiehn
87+
arvel.hilll
88+
asatterfield
3189
aschuppe
90+
ashlynn71
91+
ashlynn85
3292
ashton.o'kon
93+
austen03
94+
austen47
95+
austin67
96+
awintheiser
97+
awyman
98+
ayana.brakus
99+
bailey.mertz
100+
bailey.sarina
33101
balistreri.donald
102+
barrett.prohaska
34103
bartell.susie
104+
bashirian.lina
105+
bayer.ova
106+
baylee.maggio
107+
bbernier
108+
bblick
35109
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
36120
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
127132
===DONE===

tests/functional/cursorid-001.phpt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
--TEST--
22
Sorting single field, ascending, using the Cursor Iterator
33
--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); ?>
66
--FILE--
77
<?php
88
require_once __DIR__ . "/../utils/basic.inc";
@@ -24,6 +24,7 @@ var_dump(
2424
$cursorid,
2525
$s1
2626
);
27+
var_dump($s1 > 0);
2728

2829
?>
2930
===DONE===
@@ -34,4 +35,5 @@ object(MongoDB\Driver\CursorId)#%d (%d) {
3435
%s(%d)
3536
}
3637
string(%d) "%d"
38+
bool(true)
3739
===DONE===

0 commit comments

Comments
 (0)