PHPackages                             lasotaartur/phpspec-silex - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. lasotaartur/phpspec-silex

ActiveLibrary[Testing &amp; Quality](/categories/testing)

lasotaartur/phpspec-silex
=========================

Test your Silex applications with PhpSpec

2.0.0(8y ago)29.2k↓16.7%1MITPHPPHP ^7.1

Since Oct 12Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lasotaartur/phpspec-silex)[ Packagist](https://packagist.org/packages/lasotaartur/phpspec-silex)[ Docs](https://github.com/lasotaartur/phpspec-silex)[ RSS](/packages/lasotaartur-phpspec-silex/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

phpspec Silex Extension
=======================

[](#phpspec-silex-extension)

[phpspec](http://www.phpspec.net/) Extension for testing [Silex](http://silex.sensiolabs.org)applications.

Installation
------------

[](#installation)

Add this to your `composer.json`:

```
{
    "require": {
        "lasotaartur/phpspec-silex": "dev-master"
    }
}
```

then add this to your `phpspec.yml`:

```
extensions:
    - PhpSpec\Silex\Extension\SilexExtension
```

Why this extension?
-------------------

[](#why-this-extension)

This extension provides you with a bootstrapped Silex environment when writing your phpspec tests.

Configuration
-------------

[](#configuration)

in your `phpspec.yml`.

### App bootstrap path

[](#app-bootstrap-path)

By default, the extension will bootstrap your app by looking for `app/bootstrap.php`.

You can manually specify the path to the bootstrap file, like so:

```
laravel_extension:
    bootstrap_path: "/your/path/bootstrap.php"
```

**Example of bootstrap.php**

```
