circleProphet) { $this->circleProphet = new \Prophecy\Prophet(); } $scope = $this->circleProphet->prophesize(); $scope->willExtend('\\' . \Chill\MainBundle\Entity\Scope::class); $scope->getId()->willReturn($id); $scope->getName()->willReturn($name); return $scope->reveal(); } }