Crash your application

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

This package is auto-updated.

Last update: 2024-04-06 07:39:01 UTC


README

68747470733a2f2f6936322e73657276696d672e636f6d2f752f6636322f31312f31332f36312f33322f6e65726f2d3031302e706e67

68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6437396238666339663462623434623438616631666166303838316434653733 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