Beispiel #1
0
 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;
 }
Beispiel #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetNotExists()
 {
     IdGeneratorContainer::get('no');
 }