Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ concurrency:
jobs:
check_composer:
name: Check composer.json
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: '8.5'
coverage: none

- name: Validate composer.json
Expand All @@ -34,19 +34,19 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5']
min_stability: ['']
name_suffix: ['']
include:
- php: '8.3'
- php: '8.5'
min_stability: 'dev'
name_suffix: ' (dev deps)'

name: PHP ${{ matrix.php }}${{ matrix.name_suffix }}

steps:
- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

* Add support for PHP 5.6

# 2.5.0

* Add support for PHPUnit 13
* Add a CI job running on PHP 8.5

# 2.4.0
* Add support for PHPUnit 12

# 2.3.0

* changes unmerged

# 2.2.0

* Add support for PHPUnit 11
Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"require": {
"php": "^5.6 || ^7 || ^8",
"phpspec/prophecy": "^1.3",
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0"
"phpunit/phpunit": "^5.0 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0 || ^13.0"
},
"autoload": {
"psr-4": {
Expand All @@ -31,5 +31,8 @@
"branch-alias": {
"dev-master": "3.x-dev"
}
},
"config": {
"sort-packages": true
}
}
1 change: 1 addition & 0 deletions src/ProphecyTrait5.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ protected function verifyProphecyDoubles()
private function countProphecyAssertions()
{
\assert($this instanceof TestCase);
\assert($this->prophet !== null);

foreach ($this->prophet->getProphecies() as $objectProphecy) {
foreach ($objectProphecy->getMethodProphecies() as $methodProphecies) {
Expand Down
1 change: 1 addition & 0 deletions src/ProphecyTrait7.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ protected function verifyProphecyDoubles()
private function countProphecyAssertions()/*: void*/
{
\assert($this instanceof TestCase);
\assert($this->prophet !== null);

foreach ($this->prophet->getProphecies() as $objectProphecy) {
foreach ($objectProphecy->getMethodProphecies() as $methodProphecies) {
Expand Down