composer update

This commit is contained in:
2020-12-21 11:01:29 +00:00
parent 064cd2244b
commit e7b3093986
342 changed files with 2055 additions and 23814 deletions

View File

@@ -0,0 +1,42 @@
name: Build
on:
push:
branches: [master]
pull_request:
release:
types: [created]
jobs:
tests:
runs-on: ubuntu-latest
name: Build and test
strategy:
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4, 8.0]
composer-flags: [ "" ]
include:
- php: 7.2
composer-flags: "--prefer-lowest"
steps:
- uses: actions/checkout@v2
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: "${{ matrix.php }}"
coverage: none
- name: Install dependencies
run: COMPOSER_ROOT_VERSION=dev-master composer update ${{ matrix.composer-flags }}
id: end-of-setup
- name: Run tests (phpspec)
run: ./vendor/bin/phpspec run --format=dot
if: always() && steps.end-of-setup.outcome == 'success'
- name: Run tests (phpunit)
run: ./vendor/bin/phpunit
if: always() && steps.end-of-setup.outcome == 'success'

View File

@@ -1,3 +1,8 @@
1.12.2 / 2020/12/19
===================
* [fixed] MethodNotFoundException sometimes thrown with wrong class attached [@ciaranmcnulty]
1.12.1 / 2020/10/29
===================

View File

@@ -97,7 +97,7 @@ $prophecy->willImplement('SessionHandlerInterface');
```
There are 2 interesting calls - `willExtend` and `willImplement`. The first one tells
object prophecy that our object should extend specific class, the second one says that
object prophecy that our object should extend a specific class. The second one says that
it should implement some interface. Obviously, objects in PHP can implement multiple
interfaces, but extend only one parent class.

View File

@@ -27,7 +27,7 @@
"require-dev": {
"phpspec/phpspec": "^6.0",
"phpunit/phpunit": "^8.0 || ^9.0 <9.3"
"phpunit/phpunit": "^8.0 || ^9.0"
},
"autoload": {

View File

@@ -92,7 +92,7 @@ PHP
$__call->setCode(<<<PHP
throw new \Prophecy\Exception\Doubler\MethodNotFoundException(
sprintf('Method `%s::%s()` not found.', get_class(\$this), func_get_arg(0)),
\$this->getProphecy(), func_get_arg(0)
get_class(\$this), func_get_arg(0)
);
PHP
);