From 5d87f2929e467fd1c1858ac2d26a85252601efb6 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Tue, 8 Mar 2011 13:30:41 +1300 Subject: [PATCH] MINOR Added fix to test troubleshooting docs about PHPUnit 3.5 missing MockObject class --- docs/en/topics/testing/testing-guide-troubleshooting.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/en/topics/testing/testing-guide-troubleshooting.md b/docs/en/topics/testing/testing-guide-troubleshooting.md index 8f088b12b..3c615ce0b 100644 --- a/docs/en/topics/testing/testing-guide-troubleshooting.md +++ b/docs/en/topics/testing/testing-guide-troubleshooting.md @@ -6,3 +6,12 @@ Part of the [SilverStripe Testing Guide](testing-guide). 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