composer update
This commit is contained in:
42
vendor/phpspec/prophecy/.github/workflows/build.yml
vendored
Normal file
42
vendor/phpspec/prophecy/.github/workflows/build.yml
vendored
Normal 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'
|
||||
5
vendor/phpspec/prophecy/CHANGES.md
vendored
5
vendor/phpspec/prophecy/CHANGES.md
vendored
@@ -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
|
||||
===================
|
||||
|
||||
|
||||
2
vendor/phpspec/prophecy/README.md
vendored
2
vendor/phpspec/prophecy/README.md
vendored
@@ -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.
|
||||
|
||||
|
||||
2
vendor/phpspec/prophecy/composer.json
vendored
2
vendor/phpspec/prophecy/composer.json
vendored
@@ -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": {
|
||||
|
||||
@@ -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
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user