public function testUnregisterProperty() { $datatypeRegistry = $this->getMockBuilder('\\SMW\\DataTypeRegistry')->disableOriginalConstructor()->getMock(); $datatypeRegistry->expects($this->once())->method('getKnownTypeLabels')->will($this->returnValue(array())); $datatypeRegistry->expects($this->once())->method('getKnownTypeAliases')->will($this->returnValue(array())); $propertyLabelFinder = $this->getMockBuilder('\\SMW\\PropertyLabelFinder')->disableOriginalConstructor()->getMock(); $propertyAliases = array(); $instance = new PropertyRegistry($datatypeRegistry, $propertyLabelFinder, $propertyAliases); $this->assertFalse($instance->isVisibleToUser('_UnregisteredType')); $this->assertFalse($instance->isUnrestrictedForAnnotationUse('_UnregisteredType')); $this->assertFalse($instance->isKnownPropertyId('_UnregisteredType')); }