protected function createController(array $params) { $sharding = $this->getShardingMock(); $sharding->expects($this->once())->method('selectGlobal')->will($this->returnValue($params)); return $this->createShardingController($sharding); }