Psecio\PropAuth\EnforcerTest::testGetPropertyValuePublicProperty PHP Метод

testGetPropertyValuePublicProperty() публичный Метод

Test the getting of a value as a public property on the subject
    public function testGetPropertyValuePublicProperty()
    {
        $username = 'ccornutt';
        $en = new Enforcer();
        $subject = new Subject((object) ['username' => $username]);
        $result = $en->getPropertyValue('username', $subject);
        $this->assertEquals($username, $result);
    }