pTest

pTest framework is an Object Oriented PHP 5 testing framework.
Download

pTest Ranking & Summary

Advertisement

  • Rating:
  • License:
  • MPL
  • Price:
  • FREE
  • Publisher Name:
  • Red Tree Systems, LLC
  • Publisher web site:
  • http://ptest.redtreesystems.com/

pTest Tags


pTest Description

pTest framework is an Object Oriented PHP 5 testing framework. pTest framework is an Object Oriented PHP 5 testing framework. The project differs from other testing frameworks in that it doesn't suffer from a dogmatic following of JUnit.A good feature of this framework is that it can be as easily used from the commandline as embedded and extended by your application. Tests are easy to write and don't require naming conventions or other weirdness.A simple test< ?phpclass SimpleTest extends BaseTest { public function setup() { } public function aIsB() { $this->false( ( 1 == 2 ), "one is not equal to two" ); $this->false( ( 'a' == 'b' ), "a is not equal to b" ); } public function knownFacts() { $this->true( ( 1 + 1 == 2 ), 'one and one is two' ); } public function fatal() { $this->true( new thisfatalerror(), 'division by zero' ); } public function tearDown() { }}? > The console outputSimpleTest: aIsB false( one is not equal to two ) = passed false( a is not equal to b ) = passed knownFacts true( one and one is two ) = passed fatal errored Output ==================================================== Fatal error: Class 'thisfatalerror' not found in /usr/local/pTest/examples/SimpleTest.php on line 18 ==================================================== 4 total tests 3 passed 0 failed 0 skipped 1 errored 75.00% success


pTest Related Software