eZ\Publish\Core\Repository\Tests\Service\Integration\UserBase::testMissingProperty PHP Метод

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

Test retrieving missing property.
public testMissingProperty ( )
    public function testMissingProperty()
    {
        try {
            $user = new User();
            $value = $user->notDefined;
            self::fail('Succeeded getting non existing property');
        } catch (PropertyNotFound $e) {
        }
        try {
            $userGroup = new UserGroup();
            $value = $userGroup->notDefined;
            self::fail('Succeeded getting non existing property');
        } catch (PropertyNotFound $e) {
        }
    }