Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enlighten Keeps Returning Call to undefined method getName() On PHPUnit 10 #69

Open
stephenjude opened this issue Aug 30, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@stephenjude
Copy link
Contributor

When running PHPUnit 10, Enlighten keeps returning:
Call to undefined method Tests\Api\Sponsor\GrantTest::getName()

To Reproduce
Steps to reproduce the behavior:

  1. Create a Laravel 10 application (it comes with PHPUnit 10).
  2. Setup Enlighten as specified on the Readme.md
  3. Run php artisan enlighten
  4. See error:
 FAILED  Tests\Api\Sponsor\GrantTest > sponsor can create a grant                                                                                           Error   
  Call to undefined method Tests\Api\Sponsor\GrantTest::getName()

  at vendor/styde/enlighten/src/Tests/EnlightenSetup.php:52
     48private function makeExample(): void
     49▕     {
     50$this->app->make(ExampleCreator::class)->makeExample(
     51get_class($this),
  ➜  52$this->getName(false),
     53$this->getProvidedData(),
     54$this->dataName()
     55▕         );
     56▕     }

      +3 vendor frames 
  4   tests/TestCase.php:19

Expected behavior
If you follow the above steps on PHPUnit 9.6, it runs without errors.

@stephenjude stephenjude added the bug Something isn't working label Aug 30, 2023
@stephenjude stephenjude changed the title Enlighten Keeps Returning Call to undefined method Tests\Api\Sponsor\GrantTest::getName() On PHPUnit 10 Enlighten Keeps Returning Call to undefined method getName() On PHPUnit 10 Aug 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant