public function testItShouldCallGetFactory() { $repository = $this->mock('\\PHPCRAPI\\PHPCR\\Repository')->getFactory($this->once())->new(); $manager = new RepositoryManager($repository); $manager->getFactory(); }