Example #1
0
 protected function execute(InputInterface $input, OutputInterface $output)
 {
     $config = $this->getHelper('configuration')->fetch();
     $replication = Replication::createFromConfig($config);
     $replication->stats();
 }
Example #2
0
 /**
  * @expectedException \Phlib\Db\Exception\InvalidArgumentException
  */
 public function testCreateFromConfigWithInvalidStorageMethod()
 {
     $config = $this->getDefaultConfig();
     $config['storage']['class'] = '\\stdClass';
     Replication::createFromConfig($config);
 }
Example #3
0
 protected function getReplication()
 {
     $config = $this->getHelper('configuration')->fetch();
     return Replication::createFromConfig($config);
 }