public static function testNormalizeServices() { $services = array(); $serviceResponse = array(); $dummyResponse = self::createDummyBusScheduleResponseObjet(); foreach ($dummyResponse->out->Schedule as $service) { $serviceResponse = BusScheduleFactory::createFromXmlResponse($service); } $services[] = $serviceResponse; return $services; }
protected static function normalizeServices($xmlServices) { $services = array(); foreach ($xmlServices->Record as $service) { $serviceResponse = BusScheduleFactory::createFromXmlResponse($service); $services[] = $serviceResponse; } return $services; }