Public feed #602596

Unnamed

public text v1 · immutable
Raw Edit
·published 2007-07-04 04:57 UTC
rendered paste body
<?php
require_once 'PHPUnit/Framework/TestCase.php';
require_once 'PEAR/RunTest.php';

class PHPUnit_Framework_TestCase_PHPT extends PHPUnit_Framework_TestCase
{
    protected static function assertPHPT($phptfilename)
    {
        $t = new PEAR_RunTest();
        $t->tests_count = 0;//bug
        $o = $t->run($phptfilename, '', 1);
        if ($o == 'SKIPPED') {
            //marking skipped does throw an exception that stops the whole
            // test row
            //self::markTestSkipped();
            return;
        }
        self::assertEquals('PASSED', $o);
    }
}
?>