public function createHandler() { $this->prophecy = $this->prophesize(NullHandler::class); $this->model = $this->prophecy->reveal(); return new Handler($this->model); }