PHPackages                             fonsecas72/behat-failurehook-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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. fonsecas72/behat-failurehook-extension

ActiveBehat-extension[Debugging &amp; Profiling](/categories/debugging)

fonsecas72/behat-failurehook-extension
======================================

Exposes stuff when a test fails

1.0.1(9y ago)029.4kApache2PHP

Since Aug 12Pushed 9y ago1 watchersCompare

[ Source](https://github.com/fonsecas72/behat-failurehook-extension)[ Packagist](https://packagist.org/packages/fonsecas72/behat-failurehook-extension)[ RSS](/packages/fonsecas72-behat-failurehook-extension/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

behat-failurehook-extension
===========================

[](#behat-failurehook-extension)

This behat extension will trigger actions when your test failed that you can use e.g. to take a screenshot, save the html content, or something more specific as it allows you to add your own thing.

How your behat.yml should look like:

```
default:
    extensions:
        Fonsecas72\FailureExpoExtension:
            expounds:
                - Features\FailureHooks\MySQLDumpExpound

```

You should not need anything else to make it work.

Adding your own hooks:
======================

[](#adding-your-own-hooks)

E.g. of a hook:

```
