Настройка включает в себя путь для PEAR на Wamp

Установленный PEAR и следуйте инструкциям на http://www.phpunit.de/manual/current/en/installation.html :

pear config-set auto_discover 1 pear install pear.phpunit.de/PHPUnit. 

Затем я создал тест:

 <?php # error reporting ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); # include TestRunner require_once 'PHPUnit/TextUI/TestRunner.php'; # our test class class ExampleTest extends PHPUnit_Framework_TestCase { public function testOne() { $this->assertTrue(FALSE); } } # run the test $suite = new PHPUnit_Framework_TestSuite('ExampleTest'); PHPUnit_TextUI_TestRunner::run($suite); ?> 

Я включил следующее в файл php.ini и перезапустил Apache:

 include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8" include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8/pear" include_path = ".;C:\Program Files/wamp/bin/php/php5.3.8/pear/PHPUnit" 

Я получаю Warning: require_once(PHPUnit/TextUI/TestRunner.php) [function.require-once]: failed to open stream: No such file or directory in ...

Почему нет пути включения? Это потому, что в Program files ?

Работа в Windows XP и WAMP.

EDIT: Я обновил путь, как было предложено.

Вывод echo ini_get('include_path'); до вызова require_once:

 .;C:\Program Files/wamp/bin/php/php5.3.8/pear 

Кроме того, удаление команды require_once вызывает Fatal error: Class 'PHPUnit_Framework_TestCase' not found in...

Добавив эти три строки в ini, последний переопределит все. Используйте только этот

 include_path = ".;C:\Program Files\wamp\bin\php\php5.3.8\pear" 

Изменить: добавление комментария @Gordon. Нам нужно держать \pear . Поскольку внутренние библиотеки грушей предполагают, что груша уже включена в путь включения.

http://pear.php.net/manual/en/installation.checking.php#installation.checking.cli.modifyingphpini