public function testSetLabel() { $propertyValue = new PropertyValue('__pro'); $propertyValue->setDataItem(new DIProperty('Foo')); $instance = new PrintRequest(PrintRequest::PRINT_PROP, null, $propertyValue); $this->assertEquals(null, $instance->getLabel()); $this->assertEquals(null, $instance->getWikiText()); $instance->setLabel('Bar'); $this->assertEquals('Bar', $instance->getLabel()); $this->assertEquals('Bar', $instance->getWikiText()); }