コード例 #1
0
 /**
  */
 public function testCreate()
 {
     /** @var EntityInterface|ObjectProphecy $entity */
     $entity = $this->prophesize('AppBundle\\Entity\\EntityInterface');
     $this->repository->create()->willReturn($entity->reveal())->shouldBeCalledTimes(1);
     $this->assertSame($entity->reveal(), $this->manager->create());
 }
コード例 #2
0
ファイル: ObjectManager.php プロジェクト: JahHub/fertilizer
 /**
  * @return EntityInterface
  */
 public function create()
 {
     return $this->repository->create();
 }