PHPackages                             gabrielelana/violent-death - 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. gabrielelana/violent-death

ActiveLibrary

gabrielelana/violent-death
==========================

Native extension that generates segmentation faults

0.2.0(11y ago)2841[1 issues](https://github.com/gabrielelana/violent-death/issues)MITPHPPHP &gt;=5.4.0

Since May 21Pushed 11y ago1 watchersCompare

[ Source](https://github.com/gabrielelana/violent-death)[ Packagist](https://packagist.org/packages/gabrielelana/violent-death)[ RSS](/packages/gabrielelana-violent-death/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (4)Used By (0)

Violent Death [![Build Status](https://camo.githubusercontent.com/d7620ad1d1df7de4998c4cc3fea7f310f5cc183b9b35ddc6047078d1b73b8be9/68747470733a2f2f7472617669732d63692e6f72672f6761627269656c656c616e612f76696f6c656e742d64656174682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gabrielelana/violent-death)
===========================================================================================================================================================================================================================================================================================================================

[](#violent-death-)

How do you know that your code is fault tolerant? How can you verify that it will not break in some terrible and irrecoverable way when something bad happens? This package will help you to simulate the most lethal events that your code can possibly face in its life.

Scenario
--------

[](#scenario)

You want to test the fault tolerance of your code. You want to make sure that your code will always leave this world with things in a consistent state. The problem is that the kind of failure you can create inside PHP are

- **Soft:** they are more or less managed by the PHP interpreter
- **Predictable:** they are created by you in a synchronous way, in real life sh\*t happens when you don't expect it, but you cannot simulate a failure say when you are executing a query or when you are making a request to a remote server

If you are asking yourself how can you manage this kind of failures then [graceful-death](https://github.com/gabrielelana/graceful-death) it's your answer

Usage
-----

[](#usage)

```
