for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Terah\Assert;
/**
* @param mixed $value
* @param bool|false $throwValidationError
* @return Assert
*/
function Assert($value, $throwValidationError=false)
{
if ( ! $throwValidationError )
return new Assert($value);
}
return (new Assert($value))->setExceptionClass('Terah\Assert\ValidationFailedException');
function Validate($value)