diff --git a/reference/mongo/manual.xml b/reference/mongo/manual.xml index b2986701c5..c1c627f2dd 100644 --- a/reference/mongo/manual.xml +++ b/reference/mongo/manual.xml @@ -10,6 +10,7 @@ &reference.mongo.connecting; &reference.mongo.queries; &reference.mongo.updates; + &reference.mongo.testing; &reference.mongo.trouble;
diff --git a/reference/mongo/testing.xml b/reference/mongo/testing.xml new file mode 100644 index 0000000000..9c2f900f8e --- /dev/null +++ b/reference/mongo/testing.xml @@ -0,0 +1,35 @@ + + + +
+ Running the Driver's Tests + + + The PECL package does not come with the PHP tests, but they are available at + Github. Download the driver + source and there are tests in the tests/ directory. The driver uses + PHPUnit for testing, which can + be installed via PEAR. + + + To run the tests, make sure that there is a MongoDB server running locally on + port 27017. Make sure you're in the main directory of the driver source you + downloaded from Github. Run: + + + + + + Please report any failures or errors in the + bugtracker. There may be skipped + tests, these are normal and can be ignored. + + + New tests are always welcome! Please feel free to contribute new tests of any + type testing any functionality. + +