https://github.com/phpactor/phpspec-extension
Phpspec Integration
https://github.com/phpactor/phpspec-extension
Last synced: 8 days ago
JSON representation
Phpspec Integration
- Host: GitHub
- URL: https://github.com/phpactor/phpspec-extension
- Owner: phpactor
- License: mit
- Archived: true
- Created: 2018-12-24T16:25:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2021-02-06T15:25:02.000Z (almost 5 years ago)
- Last Synced: 2025-07-21T01:37:11.643Z (6 months ago)
- Language: PHP
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PhpSpec Extension
=================

Phpspec support for Phpactor.

Features
========
- [x] 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](https://phpactor.github.io/phpactor/configuration.html) to
jump from your standard source code to the test:
```javascript
{
"navigator.destinations": {
"source": "lib\/Test.php"
"spec": "spec\/Spec.php"
},
}
```
See [Jump to related
file](https://phpactor.github.io/phpactor/navigation.html#jump-to-or-generate-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](https://github.com/phpactor/phpactor) repository.
- Join the `#phpactor` channel on the Slack [Symfony Devs](https://symfony.com/slack-invite) channel.