/** * Get a working reader */ protected function getWorkingReader() { static $reader; // Reader aready created if ($reader) { return $reader; } // The path to the data source $file_path = realpath(__DIR__ . '/logs/race07/prosracing Clio Cup_2013_02_12_22_06_19_Race2.txt'); // Get the data reader for the given data source $reader = Data_Reader::factory($file_path); // Return reader return $reader; }
/** * Get a working reader */ protected function getWorkingReader() { static $reader; // Reader aready created if ($reader) { return $reader; } // The path to the data source $file_path = realpath(__DIR__ . '/logs/assettocorsa-server/output.txt'); // Get the data reader for the given data source $reader = Data_Reader::factory($file_path); // Return reader return $reader; }
/** * Get a working reader */ protected function getWorkingReader() { static $reader; // Reader aready created if ($reader) { return $reader; } // The path to the data source $file_path = realpath(__DIR__ . '/logs/rfactor2/race.xml'); // Get the data reader for the given data source $reader = Data_Reader::factory($file_path); // Return reader return $reader; }
/** * Test exception when no reader is found * * @expectedException Simresults\Exception\CannotFindReader */ public function testBuildingReaderWithUnkownData() { $reader = Data_Reader::factory('Unknown data to readers'); }
/** * Get a working reader */ protected function getWorkingReader() { static $reader; // Reader aready created if ($reader) { return $reader; } // The path to the data source $file_path = realpath(__DIR__ . '/logs/projectcars-server/sms_stats_data.json'); // Get the data reader for the given data source $reader = Data_Reader::factory($file_path); // Return reader return $reader; }
/** * Get a working reader */ protected function getWorkingReader() { static $reader; // Reader aready created if ($reader) { return $reader; } // The path to the data source $file_path = realpath(__DIR__ . '/logs/assettocorsa/offline_quick_race_session.json'); // Get the data reader for the given data source $reader = Data_Reader::factory($file_path); // Return reader return $reader; }