cvs: pear(branch_1_2_x) /DB_NestedSet/NestedSet DB.php Event.php MDB.php /DB_NestedSet/tests UnitTest.php index.php
| From: | Daniel Khan | Date: | Sat, 27 Sep 2003 22:28:05 +0000 |
| Subject: | cvs: pear(branch_1_2_x) /DB_NestedSet/NestedSet DB.php Event.php MDB.php /DB_NestedSet/tests UnitTest.php index.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13143@lists.php.net to get a copy of this message | ||
datenpunk Sat Sep 27 18:28:05 2003 EDT
Modified files: (Branch: branch_1_2_x)
/pear/DB_NestedSet/NestedSet DB.php Event.php MDB.php
/pear/DB_NestedSet/tests UnitTest.php index.php
Log:
Added DB drivers to 1.2 branch
Index: pear/DB_NestedSet/NestedSet/DB.php diff -u /dev/null pear/DB_NestedSet/NestedSet/DB.php:1.4.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/DB.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,118 @@ +<?php +// +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_DB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// +// $Id: DB.php,v 1.4.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// + +require_once 'DB.php'; + +// {{{ DB_NestedSet_DB:: class + +/** +* Wrapper class for PEAR::DB +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.4.2.2 $ +* @access public +*/ + +// }}} +class DB_NestedSet_DB extends DB_NestedSet { + // {{{ properties + + /** + * @var object Db object + */ + var $db; + + // }}} + // {{{ constructor + + /** + * Constructor + * + * @param mixed $dsn DSN as PEAR dsn URI or dsn Array + * @param array $params Database column fields which should be returned + * + */ + function DB_NestedSet_DB($dsn, $params = array()) + { + $this->_debugMessage('DB_NestedSet_DB($dsn, $params = array())'); + $this->DB_NestedSet($params); + $this->db =& $this->_db_Connect($dsn); + $this->db->setFetchMode(DB_FETCHMODE_ASSOC); + } + + // }}} + // {{{ destructor + + /** + * Destructor + */ + function _DB_NestedSet_DB() + { + $this->_debugMessage('_DB_NestedSet_DB()'); + $this->_DB_NestedSet(); + $this->_db_Disconnect(); + } + + // }}} + // {{{ _db_Connect() + + /** + * Connects to the db + * + * @return object DB The database object + * @access private + */ + function &_db_Connect($dsn) + { + $this->_debugMessage('_db_Connect($dsn)'); + if (is_object($this->db)) { + return $this->db; + } + + $db =& DB::connect($dsn); + $this->_testFatalAbort($db, __FILE__, __LINE__); + return $db; + } + + // }}} + // {{{ _db_Disconnect() + + /** + * Disconnects from db + * + * @return void + * @access private + */ + function _db_Disconnect() + { + $this->_debugMessage('_db_Disconnect()'); + if (is_object($this->db)) { + @$this->db->disconnect(); + } + + return true; + } + + // }}} +} + +?> Index: pear/DB_NestedSet/NestedSet/Event.php diff -u /dev/null pear/DB_NestedSet/NestedSet/Event.php:1.1.1.1.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/Event.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,79 @@ +<?php +/** +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_DB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// +// $Id: Event.php,v 1.1.1.1.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// +// +*/ + +/** +* Poor mans event handler for DB_NestedSet +* +* Mostly for demo purposes or for extending it if +* someone has ideas... +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.1.1.1.2.2 $ +* @access public +*/ +Class DB_NestedSetEvent extends PEAR { + + /** + * Constructor + * + * @return void + */ + function DB_NestedSetEvent() { + + $this->PEAR(); + } + + /** + * Destructor + * + * @return void + */ + function _DB_NestedSetEvent() { + + $this->_PEAR(); + } + + + /** + * Calls the event handler + * + * You may want to do a switch() here and call you methods + * depending on the event + * + * @param string $event The Event that occured + * @param object node $node A Reference to the node object which was subject to changes + * @param array $eparams A associative array of params which may be needed by the handler + * @return void + * @access private + */ + function callEvent($event, &$node, $eparams = array()) { + + echo "<br>Override callEvent() if you want to have custom event handlers<br>\n"; + echo "Event $event was called with the following params:<br><br>\n"; + echo "<PRE>"; + print_r($eparams); + echo "</PRE><br>\n"; + } +} +?> Index: pear/DB_NestedSet/NestedSet/MDB.php diff -u /dev/null pear/DB_NestedSet/NestedSet/MDB.php:1.4.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/MDB.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,120 @@ +<?php +// +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_MDB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// Thanks to Hans Lellelid for suggesting support for PEAR::MDB +// and for his help in implementing this. +// +// $Id: MDB.php,v 1.4.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// + +require_once 'MDB.php'; + +// {{{ DB_NestedSet_MDB:: class + +/** +* Wrapper class for PEAR::MDB +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.4.2.2 $ +* @access public +*/ +// }}} +class DB_NestedSet_MDB extends DB_NestedSet { + // {{{ properties + + /** + * @var object The MDB object + */ + var $db; + + // }}} + // {{{ constructor + + /** + * Constructor + * + * @param mixed $dsn DSN as PEAR dsn URI or dsn Array + * @param array $params Database column fields which should be returned + * + */ + function DB_NestedSet_MDB($dsn, $params = array()) + { + $this->_debugMessage('DB_NestedSet_MDB($dsn, $params = array())'); + $this->DB_NestedSet($params); + $this->db =& $this->_db_Connect($dsn); + $this->db->setFetchMode(MDB_FETCHMODE_ASSOC); + } + + // }}} + // {{{ destructor + + /** + * Destructor + */ + function _DB_NestedSet_MDB() + { + $this->_debugMessage('_DB_NestedSet_MDB()'); + $this->_DB_NestedSet(); + $this->_db_Disconnect(); + } + + // }}} + // {{{ _db_Connect() + + /** + * Connects to the db + * + * @return object DB The database object + * @access private + */ + function &_db_Connect($dsn) + { + $this->_debugMessage('_db_Connect($dsn)'); + if (is_object($this->db)) { + return $this->db; + } + + $db =& MDB::connect($dsn); + $this->_testFatalAbort($db, __FILE__, __LINE__); + + return $db; + } + + // }}} + // {{{ _db_Disconnect() + + /** + * Disconnects from db + * + * @return void + * @access private + */ + function _db_Disconnect() + { + $this->_debugMessage('_db_Disconnect()'); + if (is_object($this->db)) { + @$this->db->disconnect(); + } + + return true; + } + + // }}} +} + +?> Index: pear/DB_NestedSet/tests/UnitTest.php diff -u pear/DB_NestedSet/tests/UnitTest.php:1.7.2.1 pear/DB_NestedSet/tests/UnitTest.php:1.7.2.2 --- pear/DB_NestedSet/tests/UnitTest.php:1.7.2.1 Sat Sep 27 18:10:34 2003 +++ pear/DB_NestedSet/tests/UnitTest.php Sat Sep 27 18:28:05 2003 @@ -5,7 +5,7 @@ * * @author Daniel Khan <dk@webcluster.at> * @package DB_NestedSetTest -* @version $Revision: 1.7.2.1 $ +* @version $Revision: 1.7.2.2 $ * @access public */ class DB_NestedSetTest extends TestBase { @@ -26,7 +26,7 @@ $db_driver = 'DB'; $db_dsn = 'mysql://user:password@localhost/test'; $this->_NeSe = DB_NestedSet::factory($db_driver, $db_dsn, $params); - $this->_NeSe->setAttr(array + $this->_NeSe->setAttr(array ( 'node_table' => 'tb_nodes', 'lock_table' => 'tb_locks', @@ -41,4 +41,4 @@ $this->_NeSe->db->query($sql); } } -?> \ No newline at end of file +?> Index: pear/DB_NestedSet/tests/index.php diff -u pear/DB_NestedSet/tests/index.php:1.3.2.1 pear/DB_NestedSet/tests/index.php:1.3.2.2 --- pear/DB_NestedSet/tests/index.php:1.3.2.1 Sat Sep 27 18:10:34 2003 +++ pear/DB_NestedSet/tests/index.php Sat Sep 27 18:28:05 2003 @@ -1,26 +1,26 @@ -<?php -/** -* UnitTest -* Unit test interface for DB_NestedSet -* -* @author Daniel Khan <dk@webcluster.at> -* @package DB_NestedSet -* @version $Revision: 1.3.2.1 $ -* @access public -*/ -ini_set('include_path',realpath(dirname(__FILE__).'/../').':'.ini_get('include_path')); - - -require_once 'PHPUnit.php'; -require_once 'TestBase.php'; -require_once 'PHPUnit/GUI/HTML.php'; -require_once 'NestedSet.php'; -require_once 'UnitTest.php'; -ini_set('error_reporting',E_ALL); - -require_once 'PHPUnit/GUI/SetupDecorator.php'; - -$gui = new PHPUnit_GUI_SetupDecorator(new PHPUnit_GUI_HTML()); -$gui->getSuitesFromDir(dirname(__FILE__),'.*[^_]\.php$',array('UnitTest.php','index.php','clitest.php','TestBase.php')); -$gui->show(); -?> +<?php +/** +* UnitTest +* Unit test interface for DB_NestedSet +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.3.2.2 $ +* @access public +*/ +ini_set('include_path',realpath(dirname(__FILE__).'/../').':'.ini_get('include_path')); + + +require_once 'PHPUnit.php'; +require_once 'TestBase.php'; +require_once 'PHPUnit/GUI/HTML.php'; +require_once 'NestedSet.php'; +require_once 'UnitTest.php'; +ini_set('error_reporting',E_ALL); + +require_once 'PHPUnit/GUI/SetupDecorator.php'; + +$gui = new PHPUnit_GUI_SetupDecorator(new PHPUnit_GUI_HTML()); +$gui->getSuitesFromDir(dirname(__FILE__),'.*[^_]\.php$',array('UnitTest.php','index.php','clitest.php','TestBase.php')); +$gui->show(); +?>
Index: pear/DB_NestedSet/NestedSet/DB.php diff -u /dev/null pear/DB_NestedSet/NestedSet/DB.php:1.4.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/DB.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,118 @@ +<?php +// +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_DB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// +// $Id: DB.php,v 1.4.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// + +require_once 'DB.php'; + +// {{{ DB_NestedSet_DB:: class + +/** +* Wrapper class for PEAR::DB +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.4.2.2 $ +* @access public +*/ + +// }}} +class DB_NestedSet_DB extends DB_NestedSet { + // {{{ properties + + /** + * @var object Db object + */ + var $db; + + // }}} + // {{{ constructor + + /** + * Constructor + * + * @param mixed $dsn DSN as PEAR dsn URI or dsn Array + * @param array $params Database column fields which should be returned + * + */ + function DB_NestedSet_DB($dsn, $params = array()) + { + $this->_debugMessage('DB_NestedSet_DB($dsn, $params = array())'); + $this->DB_NestedSet($params); + $this->db =& $this->_db_Connect($dsn); + $this->db->setFetchMode(DB_FETCHMODE_ASSOC); + } + + // }}} + // {{{ destructor + + /** + * Destructor + */ + function _DB_NestedSet_DB() + { + $this->_debugMessage('_DB_NestedSet_DB()'); + $this->_DB_NestedSet(); + $this->_db_Disconnect(); + } + + // }}} + // {{{ _db_Connect() + + /** + * Connects to the db + * + * @return object DB The database object + * @access private + */ + function &_db_Connect($dsn) + { + $this->_debugMessage('_db_Connect($dsn)'); + if (is_object($this->db)) { + return $this->db; + } + + $db =& DB::connect($dsn); + $this->_testFatalAbort($db, __FILE__, __LINE__); + return $db; + } + + // }}} + // {{{ _db_Disconnect() + + /** + * Disconnects from db + * + * @return void + * @access private + */ + function _db_Disconnect() + { + $this->_debugMessage('_db_Disconnect()'); + if (is_object($this->db)) { + @$this->db->disconnect(); + } + + return true; + } + + // }}} +} + +?> Index: pear/DB_NestedSet/NestedSet/Event.php diff -u /dev/null pear/DB_NestedSet/NestedSet/Event.php:1.1.1.1.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/Event.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,79 @@ +<?php +/** +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_DB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// +// $Id: Event.php,v 1.1.1.1.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// +// +*/ + +/** +* Poor mans event handler for DB_NestedSet +* +* Mostly for demo purposes or for extending it if +* someone has ideas... +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.1.1.1.2.2 $ +* @access public +*/ +Class DB_NestedSetEvent extends PEAR { + + /** + * Constructor + * + * @return void + */ + function DB_NestedSetEvent() { + + $this->PEAR(); + } + + /** + * Destructor + * + * @return void + */ + function _DB_NestedSetEvent() { + + $this->_PEAR(); + } + + + /** + * Calls the event handler + * + * You may want to do a switch() here and call you methods + * depending on the event + * + * @param string $event The Event that occured + * @param object node $node A Reference to the node object which was subject to changes + * @param array $eparams A associative array of params which may be needed by the handler + * @return void + * @access private + */ + function callEvent($event, &$node, $eparams = array()) { + + echo "<br>Override callEvent() if you want to have custom event handlers<br>\n"; + echo "Event $event was called with the following params:<br><br>\n"; + echo "<PRE>"; + print_r($eparams); + echo "</PRE><br>\n"; + } +} +?> Index: pear/DB_NestedSet/NestedSet/MDB.php diff -u /dev/null pear/DB_NestedSet/NestedSet/MDB.php:1.4.2.2 --- /dev/null Sat Sep 27 18:28:05 2003 +++ pear/DB_NestedSet/NestedSet/MDB.php Sat Sep 27 18:28:04 2003 @@ -0,0 +1,120 @@ +<?php +// +// +----------------------------------------------------------------------+ +// | PEAR :: DB_NestedSet_MDB | +// +----------------------------------------------------------------------+ +// | Copyright (c) 1997-2003 The PHP Group | +// +----------------------------------------------------------------------+ +// | This source file is subject to version 2.0 of the PHP license, | +// | that is bundled with this package in the file LICENSE, and is | +// | available at through the world-wide-web at | +// | http://www.php.net/license/2_02.txt. | +// | If you did not receive a copy of the PHP license and are unable to | +// | obtain it through the world-wide-web, please send a note to | +// | license@php.net so we can mail you a copy immediately. | +// +----------------------------------------------------------------------+ +// | Authors: Daniel Khan <dk@webcluster.at> | +// +----------------------------------------------------------------------+ +// Thanks to Hans Lellelid for suggesting support for PEAR::MDB +// and for his help in implementing this. +// +// $Id: MDB.php,v 1.4.2.2 2003/09/27 22:28:04 datenpunk Exp $ +// + +require_once 'MDB.php'; + +// {{{ DB_NestedSet_MDB:: class + +/** +* Wrapper class for PEAR::MDB +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.4.2.2 $ +* @access public +*/ +// }}} +class DB_NestedSet_MDB extends DB_NestedSet { + // {{{ properties + + /** + * @var object The MDB object + */ + var $db; + + // }}} + // {{{ constructor + + /** + * Constructor + * + * @param mixed $dsn DSN as PEAR dsn URI or dsn Array + * @param array $params Database column fields which should be returned + * + */ + function DB_NestedSet_MDB($dsn, $params = array()) + { + $this->_debugMessage('DB_NestedSet_MDB($dsn, $params = array())'); + $this->DB_NestedSet($params); + $this->db =& $this->_db_Connect($dsn); + $this->db->setFetchMode(MDB_FETCHMODE_ASSOC); + } + + // }}} + // {{{ destructor + + /** + * Destructor + */ + function _DB_NestedSet_MDB() + { + $this->_debugMessage('_DB_NestedSet_MDB()'); + $this->_DB_NestedSet(); + $this->_db_Disconnect(); + } + + // }}} + // {{{ _db_Connect() + + /** + * Connects to the db + * + * @return object DB The database object + * @access private + */ + function &_db_Connect($dsn) + { + $this->_debugMessage('_db_Connect($dsn)'); + if (is_object($this->db)) { + return $this->db; + } + + $db =& MDB::connect($dsn); + $this->_testFatalAbort($db, __FILE__, __LINE__); + + return $db; + } + + // }}} + // {{{ _db_Disconnect() + + /** + * Disconnects from db + * + * @return void + * @access private + */ + function _db_Disconnect() + { + $this->_debugMessage('_db_Disconnect()'); + if (is_object($this->db)) { + @$this->db->disconnect(); + } + + return true; + } + + // }}} +} + +?> Index: pear/DB_NestedSet/tests/UnitTest.php diff -u pear/DB_NestedSet/tests/UnitTest.php:1.7.2.1 pear/DB_NestedSet/tests/UnitTest.php:1.7.2.2 --- pear/DB_NestedSet/tests/UnitTest.php:1.7.2.1 Sat Sep 27 18:10:34 2003 +++ pear/DB_NestedSet/tests/UnitTest.php Sat Sep 27 18:28:05 2003 @@ -5,7 +5,7 @@ * * @author Daniel Khan <dk@webcluster.at> * @package DB_NestedSetTest -* @version $Revision: 1.7.2.1 $ +* @version $Revision: 1.7.2.2 $ * @access public */ class DB_NestedSetTest extends TestBase { @@ -26,7 +26,7 @@ $db_driver = 'DB'; $db_dsn = 'mysql://user:password@localhost/test'; $this->_NeSe = DB_NestedSet::factory($db_driver, $db_dsn, $params); - $this->_NeSe->setAttr(array + $this->_NeSe->setAttr(array ( 'node_table' => 'tb_nodes', 'lock_table' => 'tb_locks', @@ -41,4 +41,4 @@ $this->_NeSe->db->query($sql); } } -?> \ No newline at end of file +?> Index: pear/DB_NestedSet/tests/index.php diff -u pear/DB_NestedSet/tests/index.php:1.3.2.1 pear/DB_NestedSet/tests/index.php:1.3.2.2 --- pear/DB_NestedSet/tests/index.php:1.3.2.1 Sat Sep 27 18:10:34 2003 +++ pear/DB_NestedSet/tests/index.php Sat Sep 27 18:28:05 2003 @@ -1,26 +1,26 @@ -<?php -/** -* UnitTest -* Unit test interface for DB_NestedSet -* -* @author Daniel Khan <dk@webcluster.at> -* @package DB_NestedSet -* @version $Revision: 1.3.2.1 $ -* @access public -*/ -ini_set('include_path',realpath(dirname(__FILE__).'/../').':'.ini_get('include_path')); - - -require_once 'PHPUnit.php'; -require_once 'TestBase.php'; -require_once 'PHPUnit/GUI/HTML.php'; -require_once 'NestedSet.php'; -require_once 'UnitTest.php'; -ini_set('error_reporting',E_ALL); - -require_once 'PHPUnit/GUI/SetupDecorator.php'; - -$gui = new PHPUnit_GUI_SetupDecorator(new PHPUnit_GUI_HTML()); -$gui->getSuitesFromDir(dirname(__FILE__),'.*[^_]\.php$',array('UnitTest.php','index.php','clitest.php','TestBase.php')); -$gui->show(); -?> +<?php +/** +* UnitTest +* Unit test interface for DB_NestedSet +* +* @author Daniel Khan <dk@webcluster.at> +* @package DB_NestedSet +* @version $Revision: 1.3.2.2 $ +* @access public +*/ +ini_set('include_path',realpath(dirname(__FILE__).'/../').':'.ini_get('include_path')); + + +require_once 'PHPUnit.php'; +require_once 'TestBase.php'; +require_once 'PHPUnit/GUI/HTML.php'; +require_once 'NestedSet.php'; +require_once 'UnitTest.php'; +ini_set('error_reporting',E_ALL); + +require_once 'PHPUnit/GUI/SetupDecorator.php'; + +$gui = new PHPUnit_GUI_SetupDecorator(new PHPUnit_GUI_HTML()); +$gui->getSuitesFromDir(dirname(__FILE__),'.*[^_]\.php$',array('UnitTest.php','index.php','clitest.php','TestBase.php')); +$gui->show(); +?>