The Symphony Tests extension is a Symphony frontend for the [SimpleTest][http://simpletest.org/en/start-testing.html] unit testing framework.
- Upload the
symphony_tests
folder in this archive to your Symphony/extensions
folder. - Enable it by selecting the "Symphony Tests" extension, choose Enable from the with-selected menu, then click Apply.
- Browse to System > Tests to view any unit tests currently installed.
You can write your own unit tests, just put your standard unit test class in:
workspace/tests/test.classname.php
symphony/tests/test.classname.php
extensions/yourextension/tests/test.classname.php
You also need to prefix your class name with SymphonyTest
. Take a look in the tests/test.google-symphony.php
file for a basic test example.