Exemplo n.º 1
0
 /**
  * @expectedException \InvalidArgumentException
  * @expectedExceptionMessage The database entry does not have a primary key
  */
 public function testNotCreatingInvalidData()
 {
     $collection = $this->getMockBuilder('MongoCollection')->disableOriginalConstructor()->getMock();
     $factory = $this->getMockBuilder('Trismegiste\\Alkahest\\Transform\\Transformer')->disableOriginalConstructor()->getMock();
     $repo = new Repository($collection, $factory);
     $repo->createFromDb(array());
 }