* @license PHP License * @package WB * @subpackage unittest */ /** * Unit Test * * TestBaseClass * * @version 0.1.0 * @package WB * @subpackage unittest */ class TestCaseBase_ConfigXCall extends UnitTestCase { /** * config loader * @var WBConfig */ private $config; /** * config unserializer * @var WBConfig_Unserializer */ private $unser; /** * config serializer * @var WBConfig_Serializer */ private $ser; public function __construct() { WBClass::load('WBUnitTest_SQLUte'); // WBUnitTest_SQLUte::source( __FILE__, 'construct' ); $this->config = WBClass::create('WBConfig'); } /** * destruct * * Remove testing tables */ public function __destruct() { //WBUnitTest_SQLUte::source( __FILE__, 'destruct' ); } public function testClassLoading() { WBClass::load('WBConfig'); $this->assertTrue(class_exists('WBConfig', false)); $this->assertIsA($this->config, 'WBConfig'); } public function testXCall() { $this->config->setLoader('File'); $this->config->load('unittest/xcall'); $ex = $this->config->get('example'); $this->assertEqual(count($ex), 3); } }