Public feed
#602596
<?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);
}
}
?>