-
-
Notifications
You must be signed in to change notification settings - Fork 0
PHPUnit to Pest Converter #33
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
Conversation
While Shift converted these methods to functions in the new Pest test, you should review these files to see if these functions may be inlined or extracted to a custom helper.
|
ℹ️ Shift converted common PHPUnit assertions to Pest expectations. However, there may also be opportunities to chain your expectations together. For example: // Before
expect($comment)->toBeArray();
expect($comment)->toHaveCount(3);
expect($comment)->toContain('foo');
// After
expect($comment)->toBeArray()->toHaveCount(3)->toContain('foo'); |
|
ℹ️ By default, Pest executes your tests sequentially within a single process. However, you may significantly decrease the time needed to run your tests by utilizing the |
❌ PHP syntax errors were detected after running your Shift. Often these are simply differences between the PHP version on the Shift server (8.2) and your project. Occasionally they are misplaced lines or duplicate import statements. You may quickly check the PHP syntax locally by running
|
This pull request contains changes for migrating your test suite from PHPUnit to Pest automated by the Pest Converter.
Before merging, you need to:
shift-130456
branchcomposer update
to install Pest with your dependenciesvendor/bin/pest
to verify the conversion