phpstan phpspec
0.3.0
PhpSpec自体の元の仕様と互換性がありますgetMatchersメソッドをサポートしますCollaboratorの正しい返品タイプを提供しますwill*メソッドCollaborator議論としてユーザーPropehcyを許可しますArgument::cetera() 、 Argument::any()Collaboratorに正しい属性を提供しますObjectBehaviorの正しい方法を提供します:should*during*beConstructedWith 、 beConstructedThrough 、 beAnInstanceOfObjectBehaviorの正しい属性を提供します:$this->CONSTANT_NAMEを使用)getWrappedObjectメソッドの正しいクラスを提供しますObjectState Matcherをサポートし、適切な方法が存在するかどうかを確認します| phpstanバージョン | PHPSPECバージョン | PHPSPEC拡張バージョン |
|---|---|---|
| ^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-phpspecこれをphpstan.neon configに入れます:
includes :
- vendor/proget-hq/phpstan-phpspec/extension.neon
parameters :
specDir : ' spec/ '