public function createFormatter() { $this->prophecy = $this->prophesize(LineFormatter::class); $this->model = $this->prophecy->reveal(); return new Formatter($this->model); }