public function setUp() { $this->registry = $this->prophesize(FormatRegistry::class); $this->formatter = new Formatter($this->registry->reveal()); $this->format = $this->prophesize(FormatInterface::class); }