Пример #1
0
 private static function assertPrepeared($tableExists = null)
 {
     PsConnectionPool::assertConnectiedTo(PsConnectionParams::sdkTest());
     foreach (to_array($tableExists) as $table) {
         check_condition(PsTable::exists($table), "Таблица {$table} не существует");
     }
 }
Пример #2
0
 /**
  * При подготовке тестов подключимся к тестовой схеме SDK
  */
 public static function setUpBeforeClass()
 {
     PsConnectionPool::configure(PsConnectionParams::sdkTest());
 }
Пример #3
0
        self::$a[] = '1';
    }
    final function __construct($a)
    {
    }
}
class B extends A
{
}
A::test();
A::test();
B::test();
ExceptionHandler::registerPretty();
//print_r(B::$a);
PsLibs::inst();
PsConnectionPool::configure(PsConnectionParams::sdkTest());
ps_admin_on(true);
$a = array('a' => array('x' => 1, 'y' => 2));
$key = 'M';
$group = 'default';
$group2 = 'default2';
PSCache::inst()->saveToCache($a, $key, $group, 'xxx');
PSCache::inst()->saveToCache(array('a' => 1), '$key', '$group', 'xxx1');
die;
echo TestUtils::testProductivity(function () {
    PSCache::inst()->getFromCache('$key', '$group', null, 'xxx1');
});
print_r(PSCache::inst()->getFromCache($key, $group, array('a'), 'xxx1'));
die;
print_r(PSCache::inst()->saveToCache($a, $key, $group));
print_r(PSCache::inst()->getFromCache($key, $group));