/** * @return ContainerMock|Container */ public function createContainer() { $this->container = $this->prophesize(ContainerModel::class); $this->reflector = $this->prophesize(ContainerReflection::class); return new ContainerMock($this->container->reveal(), $this->reflector->reveal()); }
/** * Prepare Container internals. */ protected function createContainer() { $this->container = new ContainerModel(); $this->reflector = new ContainerReflection(); $this->container->delegate($this->reflector); }