public function testValidRequests() { $argLists = array(); $property = Property::newFromType('commonsMedia'); $store = WikibaseRepo::getDefaultInstance()->getEntityStore(); $store->saveEntity($property, '', $GLOBALS['wgUser'], EDIT_NEW); foreach ($this->getItems($property->getId()) as $item) { foreach ($item->getStatements()->toArray() as $statement) { $value = new StringValue('Kittens.png'); $argLists[] = array('itemId' => $item->getId(), 'guid' => $statement->getGuid(), 'value' => $value->getArrayValue(), 'expectedSummary' => $this->getExpectedSummary($statement, $value)); } } foreach ($argLists as $argList) { call_user_func_array(array($this, 'doTestValidRequest'), $argList); } }