Ejemplo n.º 1
0
 /**
  * @test
  * @expectedException Behance\NBD\Dbal\Exceptions\ConfigRequirementException
  * @dataProvider badReplicaConfigProvider
  */
 public function badReplicaConfig($bad_replica_config)
 {
     $trial_config = ['replicas' => $bad_replica_config];
     Factory::create($trial_config);
 }
Ejemplo n.º 2
0
 /**
  * @return Behance\NBD\Dbal\AdapterInterface
  */
 protected function _getLiveAdapter()
 {
     $configs = ['master' => $this->_getEnvironmentConfig()];
     return Factory::create($configs);
 }