getDriver() 공개 정적인 메소드

public static getDriver ( )
 /**
  * @expectedException \OutOfBoundsException
  * @expectedExceptionMessageRegExp /Undefined .+ in the sharding controller/
  */
 public function testErrorOnUndefinedLink()
 {
     $sharding = $this->getShardingMock();
     $driver = TestUtil::getDriver();
     $params = TestUtil::getControllerParams();
     $link = $driver->connect($params, $params['username'], $params['passwd']);
     $controller = $this->createShardingController($sharding);
     $controller->getQuery($driver, $link);
 }
예제 #2
0
 /**
  * @param Controller $controller
  * @return Reactor
  */
 protected function createReactor(Controller $controller)
 {
     return new Reactor(TestUtil::getDriver(), $controller);
 }