Download the PHP package proget-hq/phpstan-phpspec without Composer
On this page you can find all versions of the php package proget-hq/phpstan-phpspec. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download proget-hq/phpstan-phpspec
More information about proget-hq/phpstan-phpspec
Files in proget-hq/phpstan-phpspec
Download proget-hq/phpstan-phpspec
More information about proget-hq/phpstan-phpspec
Files in proget-hq/phpstan-phpspec
Vendor proget-hq
Package phpstan-phpspec
Short Description PhpSpec extension for PHPStan
License MIT
Package phpstan-phpspec
Short Description PhpSpec extension for PHPStan
License MIT
Please rate this library. Is it a good library?
Informations about the package phpstan-phpspec
PhpSpec extension for PHPStan
What does it do?
- Currently compatible with original specs from
PhpSpec
itself - Check if custom matcher exist in given spec class
- support fot
getMatchers
method
- support fot
- Provides correct return type for
Collaborator
in spec methodswill*
methods- support for array return type (check if array item has correct type)
- Allow to user
Propehcy
asCollaborator
argumentsArgument::cetera()
,Argument::any()
- Provides correct attributes for
Collaborator
- Provides correct methods for
ObjectBehavior
:should*
methodsduring*
methodsbeConstructedWith
,beConstructedThrough
,beAnInstanceOf
- search original spec class (subject) and check if methods exists
- Provides correct attributes for
ObjectBehavior
:- public attributes
- static properties (with
$this->CONSTANT_NAME
)
- Provides correct class for
getWrappedObject
method - Support
ObjectState Matcher
and check if appropriate methods exists
Compatibility
PHPStan version | PhpSpec version | PhpSpec extension version |
---|---|---|
^0.11.6 | ^6.0 | 0.3.x |
^0.11.6 | ^5.1 | 0.2.x |
^0.10.7 | ^5.1 | 0.1.x |
Installation
Configuration
Put this into your phpstan.neon
config:
All versions of phpstan-phpspec with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
phpstan/phpstan Version ^0.11.6
nikic/php-parser Version ^4.1
phpspec/phpspec Version ^6.0
phpstan/phpstan Version ^0.11.6
nikic/php-parser Version ^4.1
phpspec/phpspec Version ^6.0
The package proget-hq/phpstan-phpspec contains the following files
Loading the files please wait ....