Example #1
0
 function testEnforceNotExistsPasses()
 {
     $arr = [5 => 0];
     \Enforce\enforceNotExists(4, $arr, "Arr");
 }
Example #2
0
 function add($regex, callable $func)
 {
     \Enforce\enforceNotExists($regex, $this->regexes, "Regex");
     array_push($this->regexes, new Regex($regex, $func));
 }