private static function getEntitiesToQueryOver() { $ret = array(); array_push($ret, self::getNewEntity()); $entity = self::getNewEntity(); $entity->addProperty('BOOLEAN', EdmType::BOOLEAN, true); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('BOOLEAN', EdmType::BOOLEAN, false); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('DATETIME', EdmType::DATETIME, new \DateTime()); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('DATETIME', EdmType::DATETIME, new \DateTime('2012-01-02')); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('DOUBLE', EdmType::DOUBLE, 2.71828183); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('DOUBLE', EdmType::DOUBLE, 3.14159265); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('GUID', EdmType::GUID, '90ab64d6-d3f8-49ec-b837-b8b5b6367b74'); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('GUID', EdmType::GUID, '00000000-1111-2222-3333-444444444444'); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('INT32', EdmType::INT32, 23); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('INT32', EdmType::INT32, 42); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('INT64', EdmType::INT64, '-1'); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('INT64', EdmType::INT64, strval(TableServiceFunctionalTestData::LONG_BIG_VALUE)); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('STRING', EdmType::STRING, 'foo'); array_push($ret, $entity); $entity = self::getNewEntity(); $entity->addProperty('STRING', EdmType::STRING, 'o hai'); array_push($ret, $entity); $entity = self::getNewEntity(); $e = self::getNewEntity(); $e->addProperty('test', EdmType::BOOLEAN, true); $e->addProperty('test2', EdmType::STRING, 'value'); $e->addProperty('test3', EdmType::INT32, 3); $e->addProperty('test4', EdmType::INT64, '12345678901'); $e->addProperty('test5', EdmType::DATETIME, new \DateTime()); array_push($ret, $e); $booleans = TableServiceFunctionalTestData::getInterestingGoodBooleans(); $dates = TableServiceFunctionalTestData::getInterestingGoodDates(); $doubles = TableServiceFunctionalTestData::getInterestingGoodDoubles(); $guids = TableServiceFunctionalTestData::getInterestingGoodGuids(); $ints = TableServiceFunctionalTestData::getInterestingGoodInts(); $longs = TableServiceFunctionalTestData::getInterestingGoodLongs(); $binaries = TableServiceFunctionalTestData::getInterestingGoodBinaries(); $strings = TableServiceFunctionalTestData::getInterestingGoodStrings(); // The random here is not to generate random values, but to // get a good mix of values in the table entities. mt_srand(123); for ($i = 0; $i < 20; $i++) { $e = self::getNewEntity(); TableServiceFunctionalTestData::addProperty($e, 'BINARY', EdmType::BINARY, $binaries); TableServiceFunctionalTestData::addProperty($e, 'BOOLEAN', EdmType::BOOLEAN, $booleans); TableServiceFunctionalTestData::addProperty($e, 'DATETIME', EdmType::DATETIME, $dates); TableServiceFunctionalTestData::addProperty($e, 'DOUBLE', EdmType::DOUBLE, $doubles); TableServiceFunctionalTestData::addProperty($e, 'GUID', EdmType::GUID, $guids); TableServiceFunctionalTestData::addProperty($e, 'INT32', EdmType::INT32, $ints); TableServiceFunctionalTestData::addProperty($e, 'INT64', EdmType::INT64, $longs); TableServiceFunctionalTestData::addProperty($e, 'STRING', EdmType::STRING, $strings); array_push($ret, $e); } return $ret; }