Psecio\PropAuth\EnforcerTest::testSubjectDeniedInvalid PHP Method

testSubjectDeniedInvalid() public method

Test that, when the policy actually matches, the result of a "denies" call is false
    public function testSubjectDeniedInvalid()
    {
        $policy = Policy::instance()->hasUsername('ccornutt');
        $policySet = PolicySet::instance()->add('policy1', $policy);
        $subject = new Subject((object) ['username' => 'ccornutt']);
        $en = new Enforcer($policySet);
        $this->assertFalse($en->denies('policy1', $subject));
    }