for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace DanBettles\Defence;
/**
* Wraps a selection of PHP functions so that we can work with mock objects in tests and test otherwise untestable code.
*/
class PhpFunctionsWrapper
{
* See https://www.php.net/manual/en/function.exit.php
*
* @param string|int $status
* @return never
public function exit($status = 0)
//@codingStandardsIgnoreStart
/** @scrutinizer ignore-call */ exit($status);
exit
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.
//@codingStandardsIgnoreEnd
}
In general, usage of exit should be done with care and only when running in a scripting context like a CLI script.