Skip to content

Commit

Permalink
Mongo => MongoClient
Browse files Browse the repository at this point in the history
  • Loading branch information
glyebov committed Apr 9, 2014
1 parent dabc970 commit 80276f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions unit-test/M2.stest
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ M::reset();
#=null

get_class(M());
#="Mongo"
#="MongoClient"

M("test.sequence");
#={"class":"M_Collection","0":{"name":"test.sequence","sdc":"test.sequence","server":""}}
Expand Down Expand Up @@ -112,7 +112,7 @@ in_array("test.no_autoload", M::listCollections("test"));

// basic functionality
get_class(M());
#="Mongo"
#="MongoClient"

get_class(M()->test);
#="MongoDB"
Expand Down
2 changes: 1 addition & 1 deletion unit-test/dot_set.stest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# ;include_once "init.php";
; M::reset();
get_class(M());
#="Mongo"
#="MongoClient"

// GOOD EXAMPLE
M("test.dot_set")->remove(["_id"=>1]);
Expand Down
2 changes: 1 addition & 1 deletion unit-test/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Profiler {
// M("server:") - Mongo
// M("alias") | M("server:db.collection") | M("db.collection") - M_Collection
// M("alias", $id) | M("[server:]db.collection", $id) - M_Object
function M($sdc='', $id=false) { # Mongo | M_Collection | M_Object
function M($sdc='', $id=false) { # MongoClient | M_Collection | M_Object
return M::i($sdc, $id);
}

Expand Down

0 comments on commit 80276f7

Please sign in to comment.