public function testRegisterPropertyLabel() { $languageIndependentPropertyLabels = array(); $instance = new PropertyLabelFinder($this->store, $languageIndependentPropertyLabels); $instance->registerPropertyLabel('_Foo', 'Bar'); $this->assertEquals(array('_Foo' => 'Bar'), $instance->getKownPredefinedPropertyLabels()); $this->assertEquals('Bar', $instance->findPropertyLabelById('_Foo')); $this->assertEquals('_Foo', $instance->searchPropertyIdByLabel('Bar')); }