/** * @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); }
/** * @param Controller $controller * @return Reactor */ protected function createReactor(Controller $controller) { return new Reactor(TestUtil::getDriver(), $controller); }