Skip to content

MST-SymphonyCMS/symphony_tests

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Symphony Tests

The Symphony Tests extension is a Symphony frontend for the [SimpleTest][http://simpletest.org/en/start-testing.html] unit testing framework.

Installation

  1. Upload the symphony_tests folder in this archive to your Symphony /extensions folder.
  2. Enable it by selecting the "Symphony Tests" extension, choose Enable from the with-selected menu, then click Apply.
  3. Browse to System > Tests to view any unit tests currently installed.

Adding unit tests

You can write your own unit tests, just put your standard unit test class in:

  1. workspace/tests/test.classname.php
  2. symphony/tests/test.classname.php
  3. 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.

Packages

No packages published

Languages

  • PHP 68.7%
  • HTML 31.0%
  • CSS 0.3%