for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace DeGraciaMathieu\FreezeMyScalar;
use DeGraciaMathieu\FreezeMyScalar\Exceptions;
class Checker
{
/**
* @param string $rule
* @param mixed $content
* @throws \DeGraciaMathieu\FreezeMyScalar\Exceptions\UnexpectedValueException
* @return void
*/
public static function passes($rule, $content)
$rule = new $rule;
if (! $rule->verify($content)) {
throw new Exceptions\UnexpectedValueException();
}