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

Update phpunit/phpunit requirement from ^9.1 to ^9.3 #38

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

dependabot-preview[bot]
Copy link
Contributor

Updates the requirements on phpunit/phpunit to permit the latest version.

Changelog

Sourced from phpunit/phpunit's changelog.

[9.3.0] - 2020-08-07

Added

  • #3936: Support using @depends to depend on classes
  • #4260: pathCoverage attribute on the phpunit/coverage element of the XML configuration file for enabling path coverage for code coverage drivers that support it
  • #4288: Add option for migrating phpunit.xml from a supported but outdated XML schema version
  • #4314: Add option to exit with exit code 1 when no tests are executed
  • #4325: Support PHP 8
  • #4365: assertIsClosedResource() and assertIsNotClosedResource()
  • --path-coverage CLI option for enabling path coverage for code coverage drivers that support it

Changed

  • #4226: Deprecate --dump-xdebug-filter and --prepend
  • #4264: Refactor logical operator constraints
  • #4365: assertIsResource() and assertIsNotResource() now handle closed resources
  • PHPUnit\Framework\TestCase::$backupGlobalsBlacklist is now deprecated, please use PHPUnit\Framework\TestCase::$backupGlobalsExcludeList instead
  • PHPUnit\Framework\TestCase::$backupStaticAttributesBlacklist is now deprecated, please use PHPUnit\Framework\TestCase::$backupStaticAttributesExcludeList instead
  • PHPUnit\Util\Blacklist is now deprecated, please use PHPUnit\Util\ExcludeList instead
  • Using --whitelist <directory> to include a directory in code coverage reports is now deprecated, please use --coverage-filter <directory> instead
  • Using --generate-configuration now generates a configuration file with failOnRisky="true" and failOnWarning="true"

Configuration of Code Coverage and Logging in phpunit.xml

The configuration of code coverage and logging in phpunit.xml has been changed to be less confusing. Here is an example of what this configuration looked like prior to PHPUnit 9.3:

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.2/phpunit.xsd"
         cacheTokens="true"
         disableCodeCoverageIgnore="true"
         ignoreDeprecatedCodeUnitsFromCodeCoverage="true">
    <!-- ... -->
&lt;filter&gt;
    &lt;whitelist addUncoveredFilesFromWhitelist=&quot;true&quot;
               processUncoveredFilesFromWhitelist=&quot;true&quot;&gt;
        &lt;directory suffix=&quot;.php&quot;&gt;src&lt;/directory&gt;
    &amp;lt;exclude&amp;gt;
        &amp;lt;directory suffix=&amp;quot;.php&amp;quot;&amp;gt;src/generated&amp;lt;/directory&amp;gt;
        &amp;lt;file&amp;gt;src/autoload.php&amp;lt;/file&amp;gt;
    &amp;lt;/exclude&amp;gt;
&amp;lt;/whitelist&amp;gt;

&lt;/filter&gt;
&lt;logging&gt;
&lt;log type=&quot;coverage-html&quot; target=&quot;html-coverage&quot; lowUpperBound=&quot;50&quot; highLowerBound=&quot;90&quot;/&gt;

</tr></table> ... (truncated)

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

@dependabot-preview dependabot-preview bot added the Dependencies Pull requests that update a dependency file label Aug 7, 2020
@dependabot-preview dependabot-preview bot requested a review from lcobucci August 7, 2020 04:56
@dependabot-preview dependabot-preview bot added this to the 1.4.0 milestone Aug 7, 2020
@lcobucci lcobucci force-pushed the dependabot/composer/phpunit/phpunit-tw-9.3 branch from 9dacfec to 77ac6e4 Compare August 18, 2020 21:16
@lcobucci lcobucci self-assigned this Aug 18, 2020
Allowing for slightly faster builds (since composer doesn't need to
resolve versions) and making CI a bit more stable (dependency related
bugs will happen on the PRs and not on stable branches).
@lcobucci lcobucci merged commit 91ce68f into master Aug 18, 2020
@lcobucci lcobucci deleted the dependabot/composer/phpunit/phpunit-tw-9.3 branch August 18, 2020 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant