Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

phpactor/phpspec-extension

Repository files navigation

PhpSpec Extension

CI

Phpspec support for Phpactor.

recording

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.