protected function setUp() { if (!class_exists('\\Doctrine\\ODM\\MongoDB\\DocumentManager')) { $this->markTestSkipped('No ODM installed'); } $this->userManager = $this->getManagerMock(); }