phpstan phpspec
0.3.0
PhpSpec itselfgetMatchers methodCollaborator in spec methods
will* methodsPropehcy as Collaborator arguments
Argument::cetera(), Argument::any()CollaboratorObjectBehavior:
should* methodsduring* methodsbeConstructedWith, beConstructedThrough, beAnInstanceOfObjectBehavior:
$this->CONSTANT_NAME)getWrappedObject methodObjectState Matcher and check if appropriate methods exists| 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 |
composer require --dev proget-hq/phpstan-phpspecPut this into your phpstan.neon config:
includes:
- vendor/proget-hq/phpstan-phpspec/extension.neon
parameters:
specDir: 'spec/'