Example #1
0
 /**
  * @param string $type the id generator type
  *
  * @return IdGenerator
  */
 private function getIdGenerator($type)
 {
     if (!isset($this->idGenerators[$type])) {
         $this->idGenerators[$type] = IdGenerator::create($type);
     }
     return $this->idGenerators[$type];
 }
 /**
  * @expectedException \Doctrine\ODM\PHPCR\Exception\InvalidArgumentException
  * @covers Doctrine\ODM\PHPCR\Id\IdGenerator::create
  */
 public function testCreateException()
 {
     IdGenerator::create(null);
 }