コード例 #1
0
 public function setUp()
 {
     parent::setUp();
     $this->registry = $this->prophesize(ManagerRegistry::class);
     $this->manager = $this->prophesize(DocumentManagerInterface::class);
     $this->registry->getManager()->willReturn($this->manager->reveal());
 }
コード例 #2
0
 public function setUp()
 {
     parent::setUp();
     $this->session = $this->prophesize(SessionInterface::class);
 }