protected function setUp() { $this->validator = $this->prophesize(ValidatorInterface::class); $this->docbot = new Docbot($this->validator->reveal()); $this->text = $this->prophesize(Text::class)->reveal(); }
/** * @param string $triggerEvent * @param bool $global * * @return ParsleyTypeExtension */ private function createExtension($triggerEvent = 'blur', $global = true) { return new ParsleyTypeExtension($this->builder->reveal(), $this->normalizer->reveal(), $this->validator->reveal(), $global, $triggerEvent); }