Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed test cases.

  • Loading branch information...
commit b4bb82ee101228202e7915b5be3740a736143565 1 parent 5d5590e
Derick Rethans authored October 08, 2012
1  tests/others/php-270-arginfo.phpt
@@ -27,6 +27,7 @@ Mongo
27 27
   Method __construct expects 2 parameters
28 28
     0: server (optional)
29 29
     1: options (optional)
  30
+  Method getConnections expects 0 parameters
30 31
   Method connect expects 0 parameters
31 32
   Method connectUtil expects 0 parameters
32 33
   Method __toString expects 0 parameters
4  tests/standalone/bug00489.phpt
... ...
@@ -1,5 +1,5 @@
1 1
 --TEST--
2  
-Test for PHP-489: is_master() crashes for standalone servers
  2
+Test for PHP-489: ismaster() crashes for standalone servers
3 3
 --SKIPIF--
4 4
 <?php require_once dirname(__FILE__) . "/skipif.inc"; ?>
5 5
 --FILE--
@@ -20,7 +20,7 @@ Notice: CON     WARN: is_ping: last pinged at %d; time: 0ms in %s line %d
20 20
 
21 21
 Notice: CON     WARN: Host does not seem to be a replicaset member (%s:%d) in %s on line %d
22 22
 
23  
-Notice: CON     WARN: discover_topology: is_master return with an error for %s:%d: [Host does not seem to be a replicaset member (%s:%d)] in %s on line %d
  23
+Notice: CON     WARN: discover_topology: ismaster return with an error for %s:%d: [Host does not seem to be a replicaset member (%s:%d)] in %s on line %d
24 24
 string(26) "No candidate servers found"
25 25
 I'm alive!
26 26
 ==DONE==
19  tests/standalone/log-1.phpt
@@ -24,13 +24,26 @@ CON     INFO: mongo_get_read_write_connection: finding a STANDALONE connection
24 24
 CON     INFO: connection_create: creating new connection for %s:%d
25 25
 CON     INFO: get_server_flags: start
26 26
 CON     FINE: send_packet: read from header: 36
27  
-CON     FINE: send_packet: data_size: 51
  27
+CON     FINE: send_packet: data_size: %d
28 28
 CON     FINE: get_server_flags: setting maxBsonObjectSize to 16777216
29  
-CON     INFO: get_connection_single: pinging %s:%d;X;%d
30  
-CON     FINE: is_ping: start
  29
+CON     FINE: is_ping: pinging %s:%d;X;%d
31 30
 CON     FINE: send_packet: read from header: 36
32 31
 CON     FINE: send_packet: data_size: 17
33 32
 CON     WARN: is_ping: last pinged at %d; time: %dms
  33
+REPLSET FINE: finding candidate servers
  34
+REPLSET FINE: - all servers
  35
+REPLSET FINE: filter_connections: adding connections:
  36
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  37
+REPLSET FINE: filter_connections: done
  38
+REPLSET FINE: sorting servers by priority and ping time
  39
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  40
+REPLSET FINE: sorting servers: done
  41
+REPLSET FINE: selecting near servers
  42
+REPLSET FINE: selecting near servers: nearest is 0ms
  43
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  44
+REPLSET FINE: selecting near server: done
  45
+REPLSET FINE: pick server: random element 0
  46
+REPLSET INFO: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
34 47
 
35 48
 Notice: CON     FINE: mongo_connection_destroy: Closing socket for %s:%d;X;%d. in Unknown on line 0
36 49
 
16  tests/standalone/log-4.phpt
@@ -32,10 +32,26 @@ Warnings:
32 32
 CON     WARN: is_ping: last pinged at %d; time: %dms
33 33
 Fine:
34 34
 CON     FINE: found connection %s:%d;X;%d (looking for %s:%d;X;%d)
  35
+CON     FINE: is_ping: pinging %s:%d;X;%d
  36
+CON     FINE: is_ping: skipping: last ran at %d, now: %d, time left: 5
  37
+REPLSET FINE: finding candidate servers
  38
+REPLSET FINE: - all servers
  39
+REPLSET FINE: filter_connections: adding connections:
  40
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  41
+REPLSET FINE: filter_connections: done
  42
+REPLSET FINE: sorting servers by priority and ping time
  43
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  44
+REPLSET FINE: sorting servers: done
  45
+REPLSET FINE: selecting near servers
  46
+REPLSET FINE: selecting near servers: nearest is 0ms
  47
+REPLSET FINE: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
  48
+REPLSET FINE: selecting near server: done
  49
+REPLSET FINE: pick server: random element 0
35 50
 Info:
36 51
 PARSE   INFO: Parsing mongodb://%s:%d
37 52
 PARSE   INFO: - Found node: %s:%d
38 53
 PARSE   INFO: - Connection type: STANDALONE
39 54
 CON     INFO: mongo_get_read_write_connection: finding a STANDALONE connection
  55
+REPLSET INFO: - connection: type: STANDALONE, socket: 3, ping: 0, hash: %s:%d;X;%d
40 56
 
41 57
 Notice: CON     INFO: freeing connection %s:%d;X;%d in Unknown on line 0
3  tests/standalone/mongocollection-find-001.phpt
@@ -3,8 +3,7 @@ MongoCollection::findOne() with multiple queries.
3 3
 --DESCRIPTION--
4 4
 Here we test whether the ping is only done once every 5 seconds.
5 5
 --SKIPIF--
6  
-<?php require_once dirname(__FILE__) . "/skipif.inc";?>
7  
-<?php if (isauth()) { die("skip The test suite doesn't support two databases at the moment"); } ?>
  6
+skip Manual test
8 7
 --FILE--
9 8
 <?php
10 9
 function error_handler($code, $message)
1  tests/standalone/mongocollection-insert-001.phpt
@@ -3,6 +3,7 @@ MongoCollection::insert() with ReplicaSet failover.
3 3
 --DESCRIPTION--
4 4
 Here we test whether the ping is only done once every 5 seconds.
5 5
 --SKIPIF--
  6
+skip Manual test
6 7
 --FILE--
7 8
 <?php
8 9
 function error_handler($code, $message)

0 notes on commit b4bb82e

Please sign in to comment.
Something went wrong with that request. Please try again.