Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Quality Assurance and Testing

    pTest 1.0 Beta

    Download button

    Downloads: 392  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    5 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Red Tree Systems, LLC | More programs
    MPL / FREE
    June 19th, 2007, 14:31 GMT
    ROOT / Programming / Quality Assurance and Testing

     Read user reviews (0)  Refer to a friend  Subscribe

    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

    < ?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

    Product's homepage

      


    TAGS:

    Object Oriented | PHP framework | testing framework | pTest | Object | oriented

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM