-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10.x] Adds PHPUnit 10 support (#45416)
* Adds PHPUnit 10 support * Apply fixes from StyleCI * Update composer.json Co-authored-by: Mior Muhammad Zaki <[email protected]> * Ignores type error * Run PHPUnit v10 * wip * Performs `transformNotSuccessfulException` when running the test * Apply fixes from StyleCI * Fixes PHPUnit 10 tests * Apply fixes from StyleCI * Removes non needed exclude path on types * Fixes tests on linux * Adjusts tests on Windows * Fixes type issues on PHPUnit 10 * Removes at `@` * Fixes missing variable * Removes wrong test instead * Fixes tests on Windows * Adjusts tests * Sets PHPUnit on its own step * Adjusts workflow * Removes verbose from PHPUnit 10 * Update tests.yml * Update composer.json * Update tests.yml * Removes non needed files * Setups PHPUnit as extra step * Removes `--verbose` from workflows * Fixes missing `Registry` class * Bumps phpunit * Fixes and adds tests for `assertArraySubset` * Apply fixes from StyleCI * Update InvalidArgumentException.php * Update TestCase.php --------- Co-authored-by: StyleCI Bot <[email protected]> Co-authored-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Dries Vints <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
- Loading branch information
1 parent
72c7929
commit ad736a4
Showing
32 changed files
with
492 additions
and
443 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/.phpunit.cache | ||
/vendor | ||
composer.phar | ||
composer.lock | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
beStrictAboutTestsThatDoNotTestAnything="false" | ||
colors="true" | ||
convertDeprecationsToExceptions="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
printerClass="Illuminate\Tests\IgnoreSkippedPrinter" | ||
processIsolation="false" | ||
stopOnError="false" | ||
stopOnFailure="false" | ||
verbose="true" | ||
> | ||
<testsuites> | ||
<testsuite name="Laravel Test Suite"> | ||
<directory suffix="Test.php">./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<php> | ||
<ini name="date.timezone" value="UTC" /> | ||
<ini name="intl.default_locale" value="C.UTF-8" /> | ||
<ini name="memory_limit" value="2048M" /> | ||
<env name="DB_CONNECTION" value="testing" /> | ||
<!-- | ||
<env name="REDIS_HOST" value="127.0.0.1" /> | ||
<env name="REDIS_PORT" value="6379" /> | ||
--> | ||
</php> | ||
</phpunit> |
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.