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

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

Test retrieving missing property.
public testMissingProperty ( )
    public function testMissingProperty()
    {
        try {
            $objectState = new ObjectState();
            $value = $objectState->notDefined;
            $this->fail('Succeeded getting non existing property');
        } catch (PropertyNotFound $e) {
        }
        try {
            $objectStateGroup = new ObjectStateGroup();
            $value = $objectStateGroup->notDefined;
            $this->fail('Succeeded getting non existing property');
        } catch (PropertyNotFound $e) {
        }
    }