[commits] [Wiki] changed: Doc/Dev/Test
Jan Schneider
jan at horde.org
Wed Feb 17 13:50:38 UTC 2016
jan Wed, 17 Feb 2016 13:50:38 +0000
Modified page: http://wiki.horde.org/Doc/Dev/Test
New Revision: 7
Change log: phpunit is bundled with Horde_Test; tweaks.
@@ -91,26 +91,26 @@
The class {{IMP_Imap}} would be loaded from {{dirname(``__FILE__``)
. '/../../lib/Imap.php'}} in the example above.
++ Running the test suite
-PHPUnit must be installed on your system. If not, install
instructions are located at
https://phpunit.de/manual/current/en/installation.html
+The Horde_Test module must be installed on your system.
From the command line, navigate to the base of an
application/package test directory (should be located in the
{{tests/}} directory at the base of the application - navigate to the
level of the directory containing the ``AllTests.php`` file).
To run all tests, issue the command:
<code type="sh">
php AllTests.php
</code>
-You can also run individual tests by issuing:
+You can also run individual tests by issuing (replace /usr/share/php
with the path to PEAR):
<code type="sh">
-phpunit [SubDirectory1/SubDirectory2/]UnitTest.php
+/usr/share/php/Horde/Test/vendor/phpunit/phpunit/phpunit
[SubDirectory1/SubDirectory2/]UnitTest.php
</code>
+++ Attention
-Using phpunit AllTests.php will cause autoloading features to **fail**.
+Using phpunit ``AllTests.php`` will cause autoloading features to **fail**.
-Remember to run AllTests.php with **php** and not **phpunit**.
+Remember to run ``AllTests.php`` with **php** and not **phpunit**.
For single or individual tests use phpunit.
More information about the commits
mailing list