* @license PHP License * @package WB * @subpackage unittest */ WBClass::load('WBException_Datasource' , 'WBUnitTest_SQLUte' , 'WBEvent_Handler_UnitTest'); /** * Unit Test * * Test table * * @version 0.1.0 * @package WB * @subpackage unittest */ class TestCaseShop_Cart extends UnitTestCase { /** * table * @var WBDatasource_Table */ protected $table; /** * shopping cart * @var WBShop_Cart */ private $cart; /** * constructor */ public function __construct() { WBUnitTest_SQLUte::source( __FILE__, 'construct'); $this->table = WBClass::create('WBDatasource_Table'); $this->cart = WBClass::create('WBShop_Cart'); } /** * destructor */ public function __destruct() { // WBUnitTest_SQLUte::source(__FILE__, 'destruct'); } /** * check instance * */ public function testInstances() { $this->assertTrue(class_exists('WBDatasource_Table', false)); $this->assertTrue(is_object($this->table)); $this->assertIsA($this->table, 'WBDatasource_Table'); $this->assertTrue(class_exists('WBShop_Cart', false)); $this->assertTrue(is_object($this->cart)); $this->assertIsA($this->cart, 'WBShop_Cart'); } } ?>