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

Use sminnee/phpunit-mock-objects #529

Merged
merged 2 commits into from
Jun 5, 2021
Merged

Use sminnee/phpunit-mock-objects #529

merged 2 commits into from
Jun 5, 2021

Conversation

blackcoder87
Copy link
Member

@blackcoder87 blackcoder87 commented Jun 5, 2021

Description

Use sminnee/phpunit-mock-objects, which is a fork of the deprecated phpunit-mock-objects. This hopefully allows to run unit tests under PHP 8 until it is possible to update to PHPUnit 9 or newer.
Using that fork has the drawback of using an even older and forked PHPUnit.

https://github.com/sminnee/phpunit-mock-objects
https://github.com/sminnee/phpunit

PHPUnit 9.2.5 requires PHP 7.3 or newer.

Ilch should consider dropping support for PHP 7.0, 7.1 and probably 7.2 in June 2022 or earlier if unit tests don't run under the latest stable version of PHP.

See
Function ReflectionParameter::isArray() is deprecated
Drop support for PHP 7.0/7.1

composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 2 installs, 8 updates, 6 removals
  - Removing phar-io/manifest (1.0.1)
  - Removing phar-io/version (1.0.1)
  - Removing phpunit/phpunit (6.5.14)
  - Removing phpunit/phpunit-mock-objects (5.0.10)
  - Removing sebastian/object-reflector (1.1.2)
  - Removing theseer/tokenizer (1.1.3)
  - Downgrading phpunit/php-code-coverage (5.3.2 => 4.0.8)
  - Downgrading sebastian/comparator (2.1.3 => 1.2.4)
  - Downgrading sebastian/diff (2.0.1 => 1.4.3)
  - Downgrading sebastian/environment (3.1.0 => 2.0.0)
  - Downgrading sebastian/exporter (3.1.3 => 2.0.0)
  - Downgrading sebastian/global-state (2.0.0 => 1.1.1)
  - Downgrading sebastian/object-enumerator (3.0.4 => 2.0.1)
  - Downgrading sebastian/recursion-context (3.0.1 => 2.0.0)
  - Locking sminnee/phpunit (5.7.29)
  - Locking sminnee/phpunit-mock-objects (3.4.10)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 2 installs, 8 updates, 6 removals
  - Downloading sebastian/recursion-context (2.0.0)
  - Downloading sebastian/exporter (2.0.0)
  - Downloading sebastian/object-enumerator (2.0.1)
  - Downloading sebastian/global-state (1.1.1)
  - Downloading sebastian/environment (2.0.0)
  - Downloading sebastian/diff (1.4.3)
  - Downloading sebastian/comparator (1.2.4)
  - Downloading phpunit/php-code-coverage (4.0.8)
  - Downloading sminnee/phpunit (5.7.29)
  - Removing theseer/tokenizer (1.1.3)
  - Removing sebastian/object-reflector (1.1.2)
  - Removing phpunit/phpunit-mock-objects (5.0.10)
  - Removing phpunit/phpunit (6.5.14)
  - Removing phar-io/version (1.0.1)
  - Removing phar-io/manifest (1.0.1)
  - Downgrading sebastian/recursion-context (3.0.1 => 2.0.0): Extracting archive
  - Downgrading sebastian/exporter (3.1.3 => 2.0.0): Extracting archive
  - Installing sminnee/phpunit-mock-objects (3.4.10): Extracting archive
  - Downgrading sebastian/object-enumerator (3.0.4 => 2.0.1): Extracting archive
  - Downgrading sebastian/global-state (2.0.0 => 1.1.1): Extracting archive
  - Downgrading sebastian/environment (3.1.0 => 2.0.0): Extracting archive
  - Downgrading sebastian/diff (2.0.1 => 1.4.3): Extracting archive
  - Downgrading sebastian/comparator (2.1.3 => 1.2.4): Extracting archive
  - Downgrading phpunit/php-code-coverage (5.3.2 => 4.0.8): Extracting archive
  - Installing sminnee/phpunit (5.7.29): Extracting archive
3 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Generating autoload files
6 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

Fixes #475

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@blackcoder87
Copy link
Member Author

🥳

travis-php8

@blackcoder87 blackcoder87 marked this pull request as ready for review June 5, 2021 06:00
@c0r1an c0r1an merged commit 71e1bbf into IlchCMS:master Jun 5, 2021
@c0r1an
Copy link
Member

c0r1an commented Jun 5, 2021

Wow das sieht sehr gut aus 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Function ReflectionParameter::isArray() is deprecated
2 participants