Crash your application

v1.0 2018-05-14 20:12 UTC

This package is auto-updated.

Last update: 2024-09-06 08:34:08 UTC


README

Scrutinizer Code Quality Latest Version on Packagist

DeGraciaMathieu/Nero

This package allows you to simulate a fatal error in your PHP application

Installation

Run in console below command to download package to your project:

composer require degraciamathieu/nero

How use

There are two possibilities : Breaker::syntaxError() and Breaker::classNotFound().

You can pass to these methods several criteria: a file, a specific line and a parameter.

require 'vendor\autoload.php';

use \DeGraciaMathieu\Nero\Breaker;

Breaker::syntaxError($file = null, $line = null, $parameter = null);

By default the method will automatically complete all these criteria.

Basic usage

require 'vendor\autoload.php';

use \DeGraciaMathieu\Nero\Breaker;

Breaker::syntaxError();

Demo

require 'vendor\autoload.php';

use \DeGraciaMathieu\Nero\Breaker;

Breaker::classNotFound();

Demo

Usage with parameters

require 'vendor\autoload.php';

use \DeGraciaMathieu\Nero\Breaker;

Breaker::syntaxError('Website\routes\web.php', 120, ';');

Demo

require 'vendor\autoload.php';

use \DeGraciaMathieu\Nero\Breaker;

Breaker::classNotFound('Website\routes\web.php', 30, 'MySpecificClass');

Demo