cvs: pear-core /tests/PEAR_Command test_getFrontendObject.phpt

From: Date: Fri, 26 Nov 2004 19:50:47 +0000
Subject: cvs: pear-core /tests/PEAR_Command test_getFrontendObject.phpt
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-26535@lists.php.net to get a copy of this message
cellog Fri Nov 26 14:50:47 2004 EDT Added files: /pear-core/tests/PEAR_Command test_getFrontendObject.phpt Log: new test http://cvs.php.net/co.php/pear-core/tests/PEAR_Command/test_getFrontendObject.phpt?r=1.1&p=1 Index: pear-core/tests/PEAR_Command/test_getFrontendObject.phpt +++ pear-core/tests/PEAR_Command/test_getFrontendObject.phpt --TEST-- PEAR_Command::getFrontendObject() --SKIPIF-- <?php if (!getenv('PHP_PEAR_RUNTESTS')) { echo 'skip'; } ?> --FILE-- <?php error_reporting(E_ALL); require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'setup.php.inc'; $GLOBALS['_PEAR_Command_uiclass'] = 'fronk_oog_booger'; $err = &PEAR_Command::getFrontendObject(); $phpunit->assertErrors(array( array('package' => 'PEAR_Error', 'message' => 'no such class: fronk_oog_booger') ), 'invalid'); $GLOBALS['_PEAR_Command_uiclass'] = 'PEAR_Frontend_CLI'; $ok = &PEAR_Command::getFrontendObject(); $phpunit->assertIsa('PEAR_Frontend_CLI', $ok, 'ok'); $phpunit->assertIsa('PEAR_Error', $err, 'invalid'); echo 'tests done'; ?> --EXPECT-- tests done

« previous php.pear.cvs (#26535) next »