Public feed #602065

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-07-03 21:31 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') {
            self::markTestSkipped();
            return;
        }
        self::assertEquals('PASSED', $o);
    }
}
?>