public function getJob($connection, array $data = []) { $mapper = $this->prophesize(ValueMapper::class); return new Job($connection->reveal(), $this->jobId, $this->projectId, $data, $mapper->reveal()); }