Skip to content

Add some details on PHPUnit installation, in Contributing > Code > Tests #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions contributing/code/tests.rst
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,34 @@ PHPUnit

To run the Symfony2 test suite, install PHPUnit 3.5.0 or later first. As it is
not stable yet, your best bet is to use the latest version from the
repository:
repository, which is for now the 3.5.0RC2 :

.. code-block:: bash

$ git clone git://github.com/sebastianbergmann/phpunit.git
$ cd phpunit

.. note::
You can list the tags of PHPUnit's repo with 'git tag', then quickly point out the last one.

At this point you are working on the master branch, so let's switch to the last tag for some stability:

.. code-block:: bash

$ git checkout -b origin/3.5.0RC2 3.5.0RC2

Finally, use PEAR to install the binaries of the last tag (use 'pear install -f' to force the installation of betas versions) :

.. code-block:: bash

$ pear channel-discover pear.phpunit.de
$ pear package
$ pear install PHPUnit-3.5.XXX.tgz
$ pear install -f PHPUnit-3.5.0RC2.tgz

As you're using an unstable version of PHPUnit, you should really run it on itself :
.. code-block:: bash

$ phpunit

Dependencies (optional)
-----------------------
Expand Down