-
Notifications
You must be signed in to change notification settings - Fork 6
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
Change to support PHPUnit 10 #473
Merged
Merged
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
6f56941
Changes to support PHPunit 10
srtfisher 9c9b1a7
More changes
srtfisher 5dabc55
More changes for 10 and WP 6.4
srtfisher 5344085
Last changes for phpunit 10
srtfisher 2c4cd48
Merge branch 'phpunit-10' into phpunit-10-changes
srtfisher f823f93
Bump asset manager
srtfisher 7c7dc41
Require the wp autoloader
srtfisher ad565f6
Require once the test case
srtfisher b8b7f0a
Another adjust
srtfisher d2be9c6
Enable debug
srtfisher 06103d5
Removing slash
srtfisher 6506aa3
Attempt to include in parent autoload
srtfisher 09b9fbb
Revert "Attempt to include in parent autoload"
srtfisher 4b930f5
Adding slash
srtfisher 221c29a
Switching to hotfix/composer-cache
srtfisher 693cf2a
Switch back
srtfisher 732bbe2
Adding debug for Mantle\Tests\Assets\TestCase
srtfisher 5ad9c36
Debugging vendor/composer/autoload_psr4.php
srtfisher 6faa102
Debug autoload_static.php
srtfisher 6f191dc
Move to tests/Assets
srtfisher 4a8bc75
Remove debug code
srtfisher e98b853
Move folders to PSR-4
srtfisher 0e914c2
Fix fixtures
srtfisher 0af848e
Removing blocks
srtfisher a2adb46
PHPstan fixes
srtfisher 6716f29
Ensure the class is loaded
srtfisher 3de3e77
Lock in 3.6.9
srtfisher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Helper script to convert the tests/ folder to a PSR-4 folder structure. | ||
* | ||
* Moves tests/example/sub/File.php to tests/Example/Sub/FileTest.php. Only | ||
* convert the sub-part of the path (ignore anything before and including | ||
* tests/). | ||
* | ||
* phpcs:disable | ||
*/ | ||
|
||
use Mantle\Support\Str; | ||
use Symfony\Component\Finder\Finder; | ||
|
||
use function Mantle\Support\Helpers\str; | ||
|
||
require_once __DIR__ . '/../vendor/autoload.php'; | ||
|
||
$finder = ( new Finder() ) | ||
->in( realpath( __DIR__ . '/../tests' ) ) | ||
->directories() | ||
->notPath( '#fixtures|__snapshots__|template-parts#' ); | ||
|
||
$base = Str::trailing_slash( realpath( __DIR__ . '/../tests/' ) ); | ||
|
||
foreach ( $finder as $dir ) { | ||
$old_dir = $dir->getRealPath(); | ||
|
||
if ( ! is_dir( $old_dir ) ) { | ||
continue; | ||
} | ||
|
||
$parts = str( $old_dir )->after( $base )->explode( '/' ); | ||
|
||
$parts = $parts->map( | ||
fn ( string $part ) => str( $part )->studly()->value(), | ||
); | ||
|
||
$new_dir = $base . $parts->implode( '/' ); | ||
|
||
dump( "Moving {$old_dir} to {$new_dir}" ); | ||
|
||
shell_exec( "git mv {$old_dir} {$old_dir}-tmp" ); | ||
shell_exec( "git mv {$old_dir}-tmp {$new_dir}" ); | ||
} | ||
|
||
echo "\nDONE!\n"; | ||
|
||
exit( 0 ); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure I like the Pascal case... I must be getting old. New things 😨