From 11187c56c06c70c523da85596903c4bfebfb2a27 Mon Sep 17 00:00:00 2001 From: AntonyThorpe Date: Wed, 17 Sep 2014 16:49:52 +1200 Subject: [PATCH] Updated for PHPUnit version clarification Updated Composer command to reference latest stable version as advised Removed testing installation via Browser step Added a note about the PHPUnit 3.7 requirement for running tests via the Browser --- docs/en/topics/testing/index.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/en/topics/testing/index.md b/docs/en/topics/testing/index.md index 37045309d..657a68d79 100644 --- a/docs/en/topics/testing/index.md +++ b/docs/en/topics/testing/index.md @@ -27,13 +27,11 @@ Unit tests are not included in the normal SilverStripe downloads so you need to Once you've got your project up and running, open a terminal and cd to your project root. - composer require --dev "phpunit/phpunit:3.7.*@stable" + composer require --dev "phpunit/phpunit:*@stable" This will install [PHPUnit](http://www.phpunit.de/) dependency, which is the framework we're building our unit tests on. Composer installs it alongside the required PHP classes into the `vendor/bin/` directory. -Open a browser at `http://localhost/dev/tests` to see a list of available tests. Run a test to ensure the installation is complete. - ### Symlinking the PHPUnit Binary You can either use PHPUnit through its full path (`vendor/bin/phpunit`), or symlink it into the root directory of your website: @@ -131,6 +129,6 @@ particularly around formatting test output. ### Via Web Browser Executing tests from the command line is recommended, since it most closely reflects -test runs in any automated testing environments. However, you can also run tests through the browser: +test runs in any automated testing environments. However, you can also run tests through the browser (requires PHPUnit version 3.7.*@stable): http://localhost/dev/tests