public function userDataFieldDataProvider() { $res = array(); for ($i = 0; $i < 2 * TestData::RANDOM_TESTS_NUMBER; $i++) { $cols = array(); $isGood = TestData::gB(); for ($j = 1; $j <= rand(1, TestData::MAX_USER_DATA_FIELDS); $j++) { if ($isGood) { $cols[] = array(TestData::genUnicodeStr(rand(1, TestData::MAX_DATA_LENGTH)), TestData::gB(), TestData::gB()); } else { $cols[] = array(TestData::getRandomValue(array(null, '', 42)), TestData::gB(), TestData::gB()); } } $res[] = array($isGood, $cols); } return $res; }