Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

"Only test methods and data providers can be public" message for a dataprovider #36

Description

@fredemmott
Fatal error: Uncaught exception 'Facebook\HackTest\InvalidTestMethodException' with message 'Only test methods and data providers can be public. Consider changing getCleanExamples to a private or protected method.' in /Users/fredemmott/code/hhast/vendor/hhvm/hacktest/src/Framework/HackTestCase.php:122
Stack trace:
#0 /Users/fredemmott/code/hhast/vendor/hhvm/hacktest/src/Framework/HackTestCase.php(25): Facebook\HackTest\HackTestCase->getTestMethods()

Either the restriction should be loosened, or the message should include something along the lines of 'or rename the method to start with provide if it is a data provider'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions