phpactor / phpspec-extension
Integration for Phpspec
Installs: 1 782
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 2
Type:phpactor-extension
Requires
- php: ^7.3 || ^8.0
- phpactor/container: ^2.0.0
- phpactor/worse-reflection-extension: ^0.2.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phpspec/phpspec: ^5.0||^6.0||^7.0||^8.0
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ~0.12.0
- phpunit/phpunit: ^9.0
- rector/rector: 0.8.52
This package is auto-updated.
Last update: 2024-02-06 21:47:58 UTC
README
Phpspec support for Phpactor.
Features
- Suggests subject methods when in spec class.
Todo:
- Add
MethodProphecy
type to method calls on collaborators. - Add Subject type to return types.
- Adds the
Collaborator
type to collaborators. - Class generator for class.
- Initialize parameters from
.phpspec.yml
Installation
$ /path/to/your/phpactor extension:install phpactor/phpspec-extension
Tips and Tricks
Test Navigation
Phpactor allows you to jump to related files, just add the following configuration to jump from your standard source code to the test:
{ "navigator.destinations": { "source": "lib\/<kernel>Test.php" "spec": "spec\/<kernel>Spec.php" }, }
See Jump to related file for more information.
Contributing
This package is open source and welcomes contributions! Feel free to open a pull request on this repository.
Support
- Create an issue on the main Phpactor repository.
- Join the
#phpactor
channel on the Slack Symfony Devs channel.