PHPackages                             vircom/behat3-zendframework3-extension - 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. [Framework](/categories/framework)
4. /
5. vircom/behat3-zendframework3-extension

ActiveLibrary[Framework](/categories/framework)

vircom/behat3-zendframework3-extension
======================================

Behat Zend Framework 3 Integration Extension

1.0.0(9y ago)02.5kMITPHPPHP &gt;=7.0

Since Apr 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/vircom/behat3-zendframework3-extension)[ Packagist](https://packagist.org/packages/vircom/behat3-zendframework3-extension)[ RSS](/packages/vircom-behat3-zendframework3-extension/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Behat 3 Zend Framework 3 Extension
==================================

[](#behat-3-zend-framework-3-extension)

---

[![Build Status](https://camo.githubusercontent.com/7c0f62e32b3082189966ee2515201ef6f4c3d789befd5cfdf656d472dbdd4410/68747470733a2f2f7472617669732d63692e6f72672f766972636f6d2f6265686174332d7a656e646672616d65776f726b332d657874656e73696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vircom/behat3-zendframework3-extension)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/7f832dee8bf7e056c04a15f387b07350f047542d765c192ea1c03a3947117d05/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f766972636f6d2f6265686174332d7a656e646672616d65776f726b332d657874656e73696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/vircom/behat3-zendframework3-extension/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/db235c60dfc9cd13eff6b62df2ab982b2dc23efc521f54445d4ec28a41b70619/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f6265686174332d7a656e646672616d65776f726b332d657874656e73696f6e2f762f737461626c652e706e67)](https://packagist.org/packages/vircom/behat3-zendframework3-extension)[![Total Downloads](https://camo.githubusercontent.com/92425a0993341fc5fdaeec7eff1dfe574e081ba6d9edcb792c437179a9120e99/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f6265686174332d7a656e646672616d65776f726b332d657874656e73696f6e2f646f776e6c6f6164732e706e67)](https://packagist.org/vircom/behat3-zendframework3-extension)[![License](https://camo.githubusercontent.com/5673de675b40a2bea36d88d85e86576efab6fad9ea0225bb88dcf0132a6a5ffb/68747470733a2f2f706f7365722e707567782e6f72672f766972636f6d2f6265686174332d7a656e646672616d65776f726b332d657874656e73696f6e2f6c6963656e73652e706e67)](https://packagist.org/packages/vircom/behat3-zendframework3-extension)

This package provides a base implementation to test applications developed with Zend Framework 3 library. It able to pass to your Behat context files services, declares in your application.

### Installation

[](#installation)

```
composer require vircom/behat3-zendframework3-extension
```

### Usage

[](#usage)

##### Create behat.yml file

[](#create-behatyml-file)

Within your project root, create behat.yml file with content below or add this code to your existing file on the root level:

```
default:
    extensions:
        VirCom\Behat3ZendFramework3Extension:
            configuration_path: /config/application.config.php
```

**Parameters:**

- configuration\_path - path to main Zend Framework 3 configuration file. Default to: /config/application.config.php.

#### Create your feature context file

[](#create-your-feature-context-file)

Just run command:

```
vendor/bin/behat --init
```

Now, Behat generate for your fist context file:

```
features/bootstrap/FeatureContext.php

```

Change its content to:

```
