public function mandangoIdGeneratorToMongo($configClass, $id, $indent = 8) { $idGenerator = IdGeneratorContainer::get($configClass['idGenerator']['name']); $code = $idGenerator->getToMongoCode(); $code = str_replace('%id%', $id, $code); $code = static::indentCode($code, $indent); return $code; }
/** * @expectedException \InvalidArgumentException */ public function testGetNotExists() { IdGeneratorContainer::get('no'); }