pTest iconpTest 1.0 Beta

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

< ?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, 14:31 GMT
price:
FREE!
developed by:
Red Tree Systems, LLC
license type:
MPL (Mozilla Public License) 
category:
ROOT \ Programming \ Quality Assurance and Testing

FREE!

In a hurry? Add it to your Download Basket!

user rating 5

UNRATED
3.0/5
 

0/5

2 Screenshots
pTestpTest

Add your review!

SUBMIT