Hi,

Wishes.
While i try to install phpunit in Xampp I get the following line along with few other .
phpunit/PHPUnit requires PHP extension "reflection"

I googled a lot and no where i could find any such extension. what i shud do to find this extension. I removed one required need of image_graphviz by upgrading.

Requesting experts pointers, suggestion and tips or hints.
Thanks in advance

Hari

Do you have the latest version of Pear? If not, update to the latest and see if that helps on installing phpunit.

Hi,

Thanks for the reply. I will try as you said. POsting here message i get while i try to install.

phpunit/PHPUnit requires PHP (version >= 5.1.4), installed version is 5.1.1
phpunit/PHPUnit requires PHP extension "reflection"
phpunit/PHPUnit requires package "pear/Image_GraphViz" (version >= 1.2.1), inst
lled version is 1.1.0
phpunit/PHPUnit can optionally use PHP extension "json"
phpunit/PHPUnit can optionally use PHP extension "pdo_sqlite"
phpunit/PHPUnit can optionally use PHP extension "xdebug" (version >= 2.0.0RC4)
Thanks.

Regards
Hari

You'll need to update to the latest version of PHP first. You'll then want to run an upgrade all command (pear upgrade-all) to try to get the all the latest packages.

PHPUnit's a pain to install because it requires so much stuff be up to date.

Have you considered Simpletest? It's much more compatible.

commented: yep! +3

Hi,

THanks for the reply. I will surely give simpletest a try. This is something new piece of information for me.

Thanks

Harish

I too am having n joy in getting PHPUnit to install. I followed the guide at phpunit.de but I just end up with a default text dump whenever I try and run any tests (in this case HTML_BBCodeParser).

#!C:/xampp/php/php.exe
PHPUnit 3.1.3 by Sebastian Bergmann.

Usage: phpunit [switches] UnitTest [UnitTest.php]

  --log-graphviz <file>  Log test execution in GraphViz markup.
  --log-json <file>      Log test execution in JSON format.
  --log-tap <file>       Log test execution in TAP format to file.
  --log-xml <file>       Log test execution in XML format to file.

  --test-db-dsn <dsn>    DSN for the test database.
  --test-db-log-rev <r>  Revision information for database logging.
  --test-db-log-info ... Additional information for database logging.

  --testdox-html <file>  Write agile documentation in HTML format to file.
  --testdox-text <file>  Write agile documentation in Text format to file.

  --filter <pattern>     Filter which tests to run.
  --loader <loader>      TestSuiteLoader implementation to use.
  --repeat <times>       Runs the test(s) repeatedly.

  --tap                  Report test execution progress in TAP format.
  --testdox              Report test execution progress in TestDox format.

  --no-syntax-check      Disable syntax check of test source files.
  --stop-on-failure      Stop execution upon first error or failure.
  --verbose              Output more verbose information.
  --wait                 Waits for a keystroke after each test.

  --skeleton             Generate skeleton UnitTest class for Unit in Unit.php.

  --help                 Prints this usage information.
  --version              Prints the version and exits.

  -d key[=value]         Sets a php.ini value.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.