示例#1
0
 public function testInit()
 {
     $this->assertInstanceOf('\\PDO', Config::getConnection());
     $expectedValue = array(1, 2, 3, 4, 5);
     Config::setSetting('test', $expectedValue);
     $this->assertEquals($expectedValue, Config::getSetting('test'));
 }
 public static function setUpBeforeClass()
 {
     /*
      * Configure the library with the DB connection
      */
     Config::setConnection(self::getPDO());
     parent::setUpBeforeClass();
 }