Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Releases and Announcements /

Latest news about the SilverStripe software.

Moderators: martimiz, Sean, Ed, biapar, assertchris, Willr, Ingo, swaiba, Graves

a bunch of new modules

Go to End

16 Posts   4115 Views


Forum Moderator, 1899 Posts

13 October 2010 at 12:26am

just checked mine and...

C:\wamp\bin\php\php5.2.6>pear -V
PEAR Version: 1.8.1
PHP Version: 5.2.6
Zend Engine Version: 2.2.0
Running on: Windows NT BARRY-PC 6.1 build 7600

sorry, that is as much as I have got notes wise, I remember it being a right old pain to get the tests running (which is why I have notes), but a pain I only had to go through once...


Community Member, 51 Posts

13 October 2010 at 6:53am

Had a look through and looks like some great work. However, i am having an issue checking out the repository.

"Error: XML data was not well-formed"

Any ideas on what the issue may be?

Thanks in advance.


I am using:
TortoiseSVN 1.5.8, Build 15348 - 32 Bit , 2009/02/13 18:06:18
Subversion 1.5.5,
apr 1.2.12
apr-utils 1.2.12
berkeley db 4.4.20
neon 0.28.3
OpenSSL 0.9.8i 15 Sep 2008
zlib 1.2.3


Forum Moderator, 1899 Posts

13 October 2010 at 7:36am


Forum Moderator, 224 Posts

13 October 2010 at 6:16pm

check out this!

D:\wamp\bin\php\php5.2.6>pear -V

PEAR Version: 1.7.1
PHP Version: 5.2.6
Zend Engine Version: 2.2.0
Running on: Windows NT ASUS 6.1 build 7600

D:\wamp\bin\php\php5.2.6>pear install
Nothing to install

D:\wamp\bin\php\php5.2.6>pear list
Archive_Tar 1.3.7 stable
Console_Getopt 1.2.3 stable
PEAR 1.9.1 stable
PHPUnit 1.3.2 stable
Structures_Graph 1.0.3 stable
XML_Util 1.2.1 stable


So this is why I spent hours and hours pissing around with pear shaped and why I think it would be better to work PHPUnit into the code in some way other than this pear business....

The PHP files themselves tell me that they are version 1.71.

Any hints?


Forum Moderator, 1899 Posts

13 October 2010 at 10:40pm

That is strange! Only advice is still only - clean, start again and force version 1.81...


Forum Moderator, 224 Posts

14 October 2010 at 12:48am

yeah - thanks for all your help. I might just have to do this.




Community Member, 14 Posts

15 October 2010 at 11:49am

Edited: 15/10/2010 11:53am

Hi Swaiba, thanks for helping me last time on the right IDE, I enjoy very much.

Recently this is my experience of installing PHPUnit.

(a) This is the only version of Wamp support PHP5.3, which is required for a more recent version of PHPUnit
WampServer 2.0i [07/11/09]
Includes :
- Apache 2.2.11
- MySQL 5.1.36
- PHP 5.3.0

(b) Install PEAR on WAMP

(c) pear upgrade
This upgrade Pear 1.8.2 to Pear 1.9.1 (which is needed for installing PHPUnit).

(d)Installing PHPUnit

For PHP5.3, you need to

(1) pear channel-discover <= Alone is insufficient
(2) pear channel-discover
(3) pear channel-discover
(4) pear install phpunit/PHPUnit

(e) Install Simpletest (recommended in

I can only managed to find this (the latest version from sourceforge does not work ? no time to find out why simpletest_1.0.1.tgz )
pear install

Now I will start the difficult process of learning how to do PHP unit test :-(


Community Member, 42 Posts

19 October 2010 at 1:02am


I cannot write tests too. Why? Look to my troubles. Can somebody help me with PHPUnit and SS 2.4.2?

My primary OS is windows 7 ultimate 64-bit, my secondary OS is Ubuntu 10.10. On Ubuntu is all OK.
I’ve troubles only on windows 7: all 32-bit: Apache/2.2.15 (Win32) DAV/2 PHP/5.2.13 mod_ssl/2.2.15 OpenSSL/0.9.8m mod_perl/2.0.4 Perl/v5.10.1, mysql 5.1.51.

I spent whole weekend to setup php with CLI ( I don’t want see shit error “CLI stopped working”).
I tested php versions:
5.3.3 - I cannot connect to mysql
5.3.2 - I cannot connect to mysql
5.3.1 - I can connect to mysql, but I cannot resolve error “CLI stopped working“
5.2.13 - OK. I can connect to mysql , I solved error “CLI stopped working“ (reason: soap.dll).

I install pear.

Archive_Tar 1.3.7 stable
Console_Color 1.0.2 stable
Console_Getargs 1.3.5 stable
Console_Getopt 1.2.3 stable
Console_Table 1.1.3 stable
Event_Dispatcher 1.1.0 stable
File_Find 1.3.1 stable
HTML_Common 1.2.5 stable
HTML_Table 1.8.3 stable
MDB2 2.4.1 stable
MDB2_Driver_mysql 1.4.1 stable
MDB2_Driver_mysqli 1.4.1 stable
PEAR 1.9.1 stable
PHPUnit 1.3.2 stable
PHP_CompatInfo 1.9.0 stable
PhpDocumentor 1.4.3 stable
Structures_Graph 1.0.3 stable
Var_Dump 1.0.4 stable
XML_Beautifier 1.2.0 stable
XML_Parser 1.3.2 stable
XML_Util 1.2.1 stable

As CLI work php phpunit StackTest (.php).

But when I want try, I see only error:

[User Notice] Please no longer include "PHPUnit/Framework.php".
GET /dev/tests
Line 50 in E:\php\PEAR\PHPUnit\Framework.php
41 * @link
42 * @since File available since Release 3.0.0
43 */
45 require_once 'PHP/CodeCoverage/Filter.php';
46 PHP_CodeCoverage_Filter::getInstance()->addFileToBlacklist(__FILE__, 'PHPUNIT');
48 trigger_error(
49 'Please no longer include "PHPUnit/Framework.php".', E_USER_NOTICE
50 );
• trigger_error(Please no longer include "PHPUnit/Framework.php".,1024)
Line 50 of Framework.php
• require_once(E:\php\PEAR\PHPUnit\Framework.php)
Line 20 of TestRunner.php
• include_once(E:\Www\\sapphire\dev\TestRunner.php)
Line 300 of Core.php
• __autoload(TestRunner)
• ReflectionClass->__construct(TestRunner)
Line 89 of Object.php
• Object::create(TestRunner)
Line 108 of DevelopmentAdmin.php
• DevelopmentAdmin->tests(SS_HTTPRequest)
Line 137 of RequestHandler.php
• RequestHandler->handleRequest(SS_HTTPRequest)
Line 147 of Controller.php
• Controller->handleRequest(SS_HTTPRequest)
Line 281 of Director.php
• Director::handleRequest(SS_HTTPRequest,Session)
Line 124 of Director.php
• Director::direct(/dev/tests)
Line 127 of main.php

Where is problem, what I’m doing wrong?

Go to Top