Ejemplo n.º 1
0
 private function createNetizen($nick)
 {
     $mock = $this->getMock("Trismegiste\\Socialist\\AuthorInterface");
     $mock->expects($this->any())->method('getNickname')->will($this->returnValue($nick));
     $user = new Netizen($mock);
     $user->setId(new \MongoId());
     return $user;
 }