svn: /phpdoc/en/trunk/reference/mongo/ testing.xml

From: Date: Tue, 23 Apr 2013 08:36:22 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ testing.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-11213@lists.php.net to get a copy of this message
derick Tue, 23 Apr 2013 08:36:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=330135 Log: PHP-695: Remove mention of PHPUnit from documentation Changed paths: U phpdoc/en/trunk/reference/mongo/testing.xml Modified: phpdoc/en/trunk/reference/mongo/testing.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/testing.xml 2013-04-22 21:28:57 UTC (rev 330134) +++ phpdoc/en/trunk/reference/mongo/testing.xml 2013-04-23 08:36:22 UTC (rev 330135) @@ -6,9 +6,7 @@ <para> The PECL package does not come with the tests, but they are available at - <link xlink:href="&url.mongodb.github;">Github</link>. There are two types of - tests: the .phpt tests and the PHPUnit tests. The PHPUnit tests are being - replaced by .phpt tests. + <link xlink:href="&url.mongodb.github;">Github</link>. </para> <section> @@ -17,56 +15,16 @@ .phpt tests are the standard way of testing PHP extensions. After compiling the MongoDB driver with "make" you can then issue "make test" to run the tests. These tests require MongoDB to be working, and hence, you need to - configure the test suite itself. You do that by editting the - <literal>tests/mongo-test-cfg.inc</literal> file. + configure the test suite itself. </para> <para> - There is more information about this in the contributing guidelines on + There is more information on running the tests in the contributing + guidelines on <link xlink:href="https://github.com/mongodb/mongo-php-driver/blob/master/CONTRIBUTING.md#running-the-tests">GitHub</link>. </para> </section> <section> - <title>PHPUnit Tests</title> - <para> - To run the tests, you must download the driver from Github (the tests are in - the <literal>tests/</literal> directory). You'll also need - <link xlink:href="&url.phpunit.install;">PHPUnit</link> to run the tests. - PHPUnit can be installed via PEAR (although you should look at the - installation instructions, it requires a couple of prerequisites). - </para> - <para> - Some tests expect warnings or errors, so you must set - <literal>error_reporting</literal> in <literal>php.ini</literal> to - <literal>E_STRICT | E_ALL</literal> for these tests to pass. If you do - not, you will get some failures that say the test was expecting a warning or - error. - </para> - <para> - To run the tests, make sure that there is a MongoDB server running locally on - port 27017. Before reporting errors, please try running the tests against the - latest development version of MongoDB: often there are tests for features that - aren't yet in the stable release. - </para> - <para> - The test suite uses the "phpunit" database. If you are using a database - called "phpunit" in your application, make sure point MongoDB at a different - data directory before running the tests. - </para> - <para> - Make sure you're in the main directory of the driver source you - downloaded from Github. Run: - </para> - <programlisting> -<![CDATA[ - -$ phpunit tests/MongoSuite.php - -]]> - </programlisting> - </section> - - <section> <title>Reporting Errors</title> <para> Please report any failures or errors in the

« previous php.doc.cvs (#11213) next »