public function testIsShardedIfThereIsAShardKey() { $cm = new ClassMetadataInfo('stdClass'); $cm->setShardKey(array('id' => 'asc')); $this->assertTrue($cm->isSharded()); }