Skip to content
AugustusKling edited this page Dec 12, 2011 · 5 revisions

Intention of RudimentaryPhpTest

The framework was created to allow execution of unit tests. It does record the test results with log listener classes in order to provided multiple output formats – thus allowing to be used in continuous integration. Its sole purpose is test execution. It does explicitly not provide data formats for test preparation nor engage schemata for test organization. Only a minimal set of assertions is provided.

Key Concepts

  • Tests are independent of each other
  • Tests are methods within test classes
  • Preparation work is left to user-provided bootstrapping code
  • Minimal dependencies
  • Log Listeners are responsible for recording test progress and results

Invocation

Simplistic approach without user defined initialization code:

php RudimentaryPhpTest --testbase="/path/to/tests"

Invocation with user defined initialization code (recommended):

php RudimentaryPhpTest --bootstrap="/path/to/your/bootstrapping"

Tutorials

Clone this wiki locally