Extensions

Extensions can add functionality to phpspec, such as, integration with a particular framework. See below for some example extensions.

Installation

Individual extensions will have their own documentation that you can follow. Usually you can install an extension by adding it to your composer.json file and updating your vendors.

Configuration

You will need to tell phpspec that you want to use the extension. You can do this by adding it to the config file:

extensions:
    - MageTest\PhpSpec\MagentoExtension\Extension

You can pass options to the extension as well:

extensions:
    - MageTest\PhpSpec\MagentoExtension\Extension
mage_locator:
    spec_prefix: spec
    src_path: public/app/code
    spec_path: spec/public/app/code
    code_pool: community

See the Configuration Cookbook for more about config files.