def METHOD_NAME(self) -> None:
    """
    L{WorkerReporter}'s implementation of test result methods raise
    L{ValueError} when called outside of the
    L{WorkerReporter.gatherReportingResults} context manager.
    """
    worker, local, pump = connectedServerAndClient(LocalWorkerAMP, WorkerProtocol)
    case = sample.FooTest("test_foo")
    with self.assertRaises(ValueError):
        worker._result.addSuccess(case)