...
For some of the classes there are phpunit tests available since version 1.2.0. Check out the /test folder and the Readme included with the test suite. This framework only covers a few of the many functions right now and is by no means complete (yet).
- Install PHPUnit using instructions on this page. PHPUnit 3.5 or later is required.
- cd to the phpcas/test/ directory
- Run the following command:
Code Block phpunit TestSuite.php
Manual testing
For testing phpCAS clients there small manual framework that was created for testing of new releases. It requires that you have phpCAS in your PATH and only requires one central configuration for all testcases.
It's basically most of the examples plus one interesting french ajax example that was posted a while back on the mailing list. The current testing process is pretty much clicking through all examples and then throw it out into some small deployments i have.
Testframework 0.3 (18/Jun/2010)
Future Plans
There is a JIRA issue PHPCAS-66 to gather ideas for a future testing framework and how it should integrate directly into phpCAS.Manual testing can be done with the supplied examples in docs/examples.
- copy the config.php.example to config.php
- modify the config.php to your cas server setup
- Add the example dir to your php enabled webserver (ssl is needed for any proxy examples)
- click through the examples
- enjoy