pTest 1.0 Beta

pTest framework is an Object Oriented PHP 5 testing framework.

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MPL (Mozilla Public License) 
USER RATING:
3.0/5 5
DEVELOPED BY:
Red Tree Systems, LLC
HOMEPAGE:
ptest.redtreesystems.com
CATEGORY:
ROOT \ Programming \ Quality Assurance and Testing
2 pTest Screenshots:
pTestpTest
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

< ?php

class 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 output

SimpleTest:
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

Last updated on June 19th, 2007

#Object Oriented #PHP framework #testing framework #pTest #Object #oriented #PHP

Add your review!

SUBMIT