/** * @medium */ public function testAddShownProperties() { //add properties $this->_instances->addShownProperty('http://model.org/prop'); $v = $this->_instances->getValues(); //count values $this->assertCount(3, $v['http://model.org/model#i1']); //test variable creation $this->assertArrayHasKey('prop', $v['http://model.org/model#i1']); //test values $this->assertCount(2, $v['http://model.org/model#i1']['prop']); $this->assertContains("val1", self::_onlyValues($v['http://model.org/model#i1']['prop'])); $this->assertContains("val2", self::_onlyValues($v['http://model.org/model#i1']['prop'])); //another one $this->_instances->addShownProperty('http://www.w3.org/2000/01/rdf-schema#label'); $v = $this->_instances->getValues(); $this->assertCount(4, $v['http://model.org/model#i1']); $this->assertArrayHasKey('label', $v['http://model.org/model#i1']); }
public function testGetValues() { $v = $this->_instances->getValues(); $this->assertEmpty($v); //on a stub store, there should be no results }