Skip to content

Commit

Permalink
Update Mockery to 1.6 (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
rneudorf-godaddy committed Jun 19, 2023
2 parents ba73ab1 + 0893cbe commit e5ac387
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 26 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ jobs:
os: 'ubuntu-20.04'
- php: '7.4'
os: 'ubuntu-20.04'
# the deprecated Ubuntu 18.04 image has been removed from GitHub workflows
# @TODO we need to switch to setup-php action to install PHP 7.3 on a supported image
# - php: '7.3'
# os: 'ubuntu-18.04' # PHP 7.3 is not pre-installed in ubuntu-latest
fail-fast: false
env:
COVERAGE_CACHE_PATH: phpunit-coverage-cache
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> WP_Mock is an API mocking framework, built and maintained by [10up](https://10up.com) and [GoDaddy](https://godaddy.com) for the purpose of making it possible to properly unit test within a WordPress project.
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) ![PHP 7.3+][php-image] [![Coverage Status][coveralls-image]][coveralls-url] [![Packagist][packagist-image]][packagist-url] [![GPLv2 License](https://img.shields.io/badge/license-GPL--2.0-orange)](https://github.com/10up/wp_mock/blob/trunk/LICENSE.md)
[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) ![PHP 7.4+][php-image] [![Coverage Status][coveralls-image]][coveralls-url] [![Packagist][packagist-image]][packagist-url] [![GPLv2 License](https://img.shields.io/badge/license-GPL--2.0-orange)](https://github.com/10up/wp_mock/blob/trunk/LICENSE.md)

## Installation

Expand Down Expand Up @@ -30,7 +30,7 @@ A special thanks to all [WP_Mock contributors](https://github.com/10up/wp_mock/g

<a href="http://10up.com/contact/"><img src="https://10up.com/uploads/2016/10/10up-Github-Banner.png" width="850"></a>

[php-image]: https://img.shields.io/badge/php-7.3%2B-green.svg
[php-image]: https://img.shields.io/badge/php-7.4%2B-green.svg
[packagist-image]: https://img.shields.io/packagist/dt/10up/wp_mock.svg
[packagist-url]: https://packagist.org/packages/10up/wp_mock
[coveralls-image]: https://coveralls.io/repos/github/10up/wp_mock/badge.svg?branch=trunk
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"version": "0.5.0",
"prefer-stable": true,
"require": {
"php": ">=7.3 < 9.0",
"php": ">=7.4 < 8.3",
"phpunit/phpunit": "^9.5.24",
"mockery/mockery": "^1.5",
"mockery/mockery": "^1.6",
"antecedent/patchwork": "^2.1"
},
"require-dev": {
Expand Down Expand Up @@ -42,7 +42,7 @@
},
"config": {
"platform": {
"php": "7.3"
"php": "7.4"
},
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
Expand Down
34 changes: 20 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/general/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Requirements

* PHP 7.3+
* PHP 7.4+
* Composer 2.0+

## Install WP_Mock
Expand All @@ -18,7 +18,7 @@ composer require --dev 10up/wp_mock
WP_Mock needs the following dependencies to work:

* PHPUnit ^9.5 (BSD 3-Clause license)
* Mockery ^1.5 (BSD 3-Clause license)
* Mockery ^1.6 (BSD 3-Clause license)
* Patchwork ^2.1 (MIT license)

They will be installed for you by Composer.
Expand Down
2 changes: 1 addition & 1 deletion phpcs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
<file>./tests</file>
<arg value="sp"/>
<rule ref="PHPCompatibility"/>
<config name="testVersion" value="7.3"/>
<config name="testVersion" value="7.4"/>
</ruleset>

0 comments on commit e5ac387

Please sign in to comment.