[Solar-talk] New PHPUnit3 Tests
Paul M Jones
pmjones at ciaweb.net
Tue Dec 5 18:44:59 PST 2006
Hi everyone,
I've replaced the previous Solar_Test-based with the new PhpUnit3-
based tests. Many thanks to Travis Swicegood who converted all the
old Solar_Test code to PhpUnit3. You can see the solarphp-test
project here:
<http://code.google.com/p/solarphp-test/>
Although I loved the simplicity of Solar_Test, PhpUnit3 is a lot more
robust and has much more power (even though it's somewhat more
complicated). Plus, it's completely outside of Solar, so nothing
that's wrong with Solar can possibly get in the way of the testing
system itself.
To run the tests, you need to install PhpUnit3:
$ pear channel-discover pear.phpunit.de
$ pear install --alldeps PhpUnit
Then update your SVN checkout, go to the trunk/tests directory, and
issue:
$ ./phpunit AllTests.php
To run only one test class, issue:
$ ./phpunit Solar_Class_NameTest
Let me or Travis know if you need any help with this or related
testing issues. Also, remember you can enter testing bugs in the
Trac installation here:
<http://solarphp.com/trac/>
Thanks, everyone. :-)
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Join the Solar community wiki! <http://solarphp.org>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list