Psecio\PropAuth\Test\TestString::evaluateNotEquals PHP Method

evaluateNotEquals() protected method

Evaluate that the method result is false (not equals)
protected evaluateNotEquals ( string $value, string $compare ) : boolean
$value string Value for evaluation
$compare string Value to compare against
return boolean Pass/fail result of test (method result)
    protected function evaluateNotEquals($value, $compare)
    {
        $test = $this->getTest();
        if (is_array($value)) {
            if ($test->getAddl()['rule'] === Policy::ANY) {
                return !in_array($compare, $value);
            } elseif ($test->getAddl()['rule'] === Policy::ALL) {
                return $compare !== $value;
            }
        } elseif (is_string($value)) {
            // Comparing a string to a string
            return $compare !== $value;
        }
    }