Try the beta version of the new SilverStripe documentation

For the next 2 weeks you can use the new documentation website and give us your feedback.


This document contains information for an outdated version (2.4) and may not be maintained any more.

If some of your projects still use this version, consider upgrading as soon as possible.


Part of the SilverStripe Testing Guide.

I can't run my new test class

If you've just added a test class, but you can't see it via the web interface, chances are, you haven't flushed your manifest cache - append ?flush=1 to the end of your URL querystring.

Class 'PHPUnit_Framework_MockObject_Generator' not found

This is due to an upgrade in PHPUnit 3.5 which PEAR doesn't handle correctly.
It can be fixed by running the following commands:

pear install -f phpunit/DbUnit
pear install -f phpunit/PHPUnit_MockObject
pear install -f phpunit/PHPUnit_Selenium


Comment policy: Please use comments for tips and corrections about the described functionality.
Comments are moderated, we reserve the right to remove comments that are inappropriate or are no longer relevant. Use the Silverstripe Forum to ask questions.

blog comments powered by Disqus