private function mockEngineMethod($method)
 {
     $engine = $this->getMock('Hyperframework\\Db\\DbClientEngine');
     DbClient::setEngine($engine);
     return $engine->expects($this->once())->method($method);
 }
Пример #2
0
 protected function setUp()
 {
     Config::set('hyperframework.app_root_path', dirname(__DIR__));
     DbClient::execute(ConfigFileLoader::loadData('init.sql'));
     DbClient::setEngine(null);
 }