Skip to content

Commit 9e4277e

Browse files
committed
PHPC-157: QueryResult and CommandResult are now Result
1 parent 8567a79 commit 9e4277e

8 files changed

+14
-14
lines changed

tests/functional/query-sort-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ object(MongoDB\Driver\Query)#%d (6) {
5656
["batch_size"]=>
5757
int(0)
5858
}
59-
string(26) "MongoDB\Driver\QueryResult"
59+
string(26) "MongoDB\Driver\Result"
6060
string(21) "MongoDB\Driver\Cursor"
6161
abernathy.audrey
6262
alda.murray

tests/readPreference/002.phpt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ foreach($rps as $r) {
2525
===DONE===
2626
<?php exit(0); ?>
2727
--EXPECTF--
28-
object(MongoDB\Driver\QueryResult)#%d (%d) {
28+
object(MongoDB\Driver\Result)#%d (%d) {
2929
["cursor"]=>
3030
array(18) {
3131
["stamp"]=>
@@ -85,7 +85,7 @@ object(MongoDB\Driver\QueryResult)#%d (%d) {
8585
["is_command_cursor"]=>
8686
bool(false)
8787
}
88-
object(MongoDB\Driver\QueryResult)#%d (%d) {
88+
object(MongoDB\Driver\Result)#%d (%d) {
8989
["cursor"]=>
9090
array(18) {
9191
["stamp"]=>
@@ -153,7 +153,7 @@ object(MongoDB\Driver\QueryResult)#%d (%d) {
153153
["is_command_cursor"]=>
154154
bool(false)
155155
}
156-
object(MongoDB\Driver\QueryResult)#%d (%d) {
156+
object(MongoDB\Driver\Result)#%d (%d) {
157157
["cursor"]=>
158158
array(18) {
159159
["stamp"]=>
@@ -221,7 +221,7 @@ object(MongoDB\Driver\QueryResult)#%d (%d) {
221221
["is_command_cursor"]=>
222222
bool(false)
223223
}
224-
object(MongoDB\Driver\QueryResult)#%d (%d) {
224+
object(MongoDB\Driver\Result)#%d (%d) {
225225
["cursor"]=>
226226
array(18) {
227227
["stamp"]=>
@@ -289,7 +289,7 @@ object(MongoDB\Driver\QueryResult)#%d (%d) {
289289
["is_command_cursor"]=>
290290
bool(false)
291291
}
292-
object(MongoDB\Driver\QueryResult)#%d (%d) {
292+
object(MongoDB\Driver\Result)#%d (%d) {
293293
["cursor"]=>
294294
array(18) {
295295
["stamp"]=>

tests/standalone/manager-executeCommand-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $command = new MongoDB\Driver\Command(array('ping' => 1));
1212
$result = $manager->executeCommand(DATABASE_NAME, $command);
1313
var_dump($command);
1414

15-
var_dump($result instanceof MongoDB\Driver\CommandResult);
15+
var_dump($result instanceof MongoDB\Driver\Result);
1616
var_dump($result);
1717

1818
echo "Dumping response document:\n";
@@ -39,7 +39,7 @@ object(MongoDB\Driver\Command)#%d (1) {
3939
}
4040
}
4141
bool(true)
42-
object(MongoDB\Driver\CommandResult)#%d (%d) {
42+
object(MongoDB\Driver\Result)#%d (%d) {
4343
["cursor"]=>
4444
array(19) {
4545
["stamp"]=>

tests/standalone/manager-executeQuery-001.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $manager->executeWriteBatch(NS, $batch);
1818
$query = new MongoDB\Driver\Query(array('x' => 3), array('projection' => array('y' => 1)));
1919
$qr = $manager->executeQuery(NS, $query);
2020

21-
var_dump($qr instanceof MongoDB\Driver\QueryResult);
21+
var_dump($qr instanceof MongoDB\Driver\Result);
2222
var_dump($qr);
2323

2424
$server = $qr->getServer();
@@ -34,7 +34,7 @@ var_dump(iterator_to_array($qr));
3434
<?php exit(0); ?>
3535
--EXPECTF--
3636
bool(true)
37-
object(MongoDB\Driver\QueryResult)#%d (%d) {
37+
object(MongoDB\Driver\Result)#%d (%d) {
3838
["cursor"]=>
3939
array(19) {
4040
["stamp"]=>

tests/standalone/server-executeCommand-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $server = new MongoDB\Driver\Server($parsed["host"], $parsed["port"]);
1212
$command = new MongoDB\Driver\Command(array('isMaster' => 1));
1313
$result = $server->executeCommand(DATABASE_NAME, $command);
1414

15-
var_dump($result instanceof MongoDB\Driver\CommandResult);
15+
var_dump($result instanceof MongoDB\Driver\Result);
1616

1717
$responseDocument = $result->toArray();
1818

tests/standalone/server-executeQuery-001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $server->executeWriteBatch(NS, $batch);
1919
$query = new MongoDB\Driver\Query(array('x' => 3), array('projection' => array('y' => 1)));
2020
$cursor = $server->executeQuery(NS, $query);
2121

22-
var_dump($cursor instanceof MongoDB\Driver\QueryResult);
22+
var_dump($cursor instanceof MongoDB\Driver\Result);
2323
var_dump($server == $cursor->getServer());
2424
var_dump(iterator_to_array($cursor));
2525

tests/standalone/server-executeQuery-002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $server->executeWriteBatch(NS, $batch);
1919
$query = new MongoDB\Driver\Query(array(), array('sort' => array('_id' => -1)));
2020
$cursor = $server->executeQuery(NS, $query);
2121

22-
var_dump($cursor instanceof MongoDB\Driver\QueryResult);
22+
var_dump($cursor instanceof MongoDB\Driver\Result);
2323
var_dump($server == $cursor->getServer());
2424
var_dump(iterator_to_array($cursor));
2525

tests/standalone/server-executeQuery-003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $server->executeWriteBatch(NS, $batch);
1919
$query = new MongoDB\Driver\Query(array(), array('modifiers' => array('$comment' => 'foo')));
2020
$cursor = $server->executeQuery(NS, $query);
2121

22-
var_dump($cursor instanceof MongoDB\Driver\QueryResult);
22+
var_dump($cursor instanceof MongoDB\Driver\Result);
2323
var_dump($server == $cursor->getServer());
2424
var_dump(iterator_to_array($cursor));
2525

0 commit comments

Comments
 (0)