X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php84-pecl-rrd_2.0.3-1.el8/tests
opt
/
alt
/
tests
/
alt-php84-pecl-rrd_2.0.3-1.el8
/
tests
/
ðŸ“
..
ðŸ“
data
📄
rrd_001.phpt
(157 B)
📄
rrd_002.phpt
(727 B)
📄
rrd_003.phpt
(400 B)
📄
rrd_004.phpt
(2.1 KB)
📄
rrd_005.phpt
(1.05 KB)
📄
rrd_006.phpt
(1.12 KB)
📄
rrd_007.phpt
(324 B)
📄
rrd_008.phpt
(1012 B)
📄
rrd_009.phpt
(274 B)
📄
rrd_010.phpt
(1.6 KB)
📄
rrd_011.phpt
(460 B)
📄
rrd_012.phpt
(1.4 KB)
📄
rrd_013.phpt
(294 B)
📄
rrd_014.phpt
(845 B)
📄
rrd_015.phpt
(640 B)
📄
rrd_016.phpt
(560 B)
📄
rrd_017.phpt
(1.94 KB)
📄
rrd_018.phpt
(966 B)
📄
rrd_019.phpt
(1.11 KB)
📄
rrd_020.phpt
(255 B)
📄
rrd_021.phpt
(1.15 KB)
📄
rrd_022.phpt
(236 B)
📄
rrdtool-bin.inc
(117 B)
📄
rrdtool-bin.inc.in
(114 B)
📄
skipif.inc
(84 B)
Editing: rrd_021.phpt
--TEST-- RRDUpdater more data source test --SKIPIF-- <?php include('skipif.inc'); include('rrdtool-bin.inc'); include('data/definition.inc'); foreach(array($data_moreDSEmptyDb, $data_moreDSUpdaterTxt) as $file) { if (!file_exists($file)) { die("skip $file doesnt' exist"); } } ?> --FILE-- <?php include('rrdtool-bin.inc'); include('data/definition.inc'); $rrdFile = dirname(__FILE__) . "/rrd_updater_moreDS_empty.rrd"; copy($data_moreDSEmptyDb, $rrdFile); $updator = new RRDUpdater($rrdFile); $updator->update(array("speed1" => 12345, "speed2" => 11340), 920804700); $updator->update(array("speed1" => 12357, "speed2" => 11357), 920805000); $updator->update(array("speed1" => 12363, "speed2" => 11363), 920805300); //mostly for "visual test" $command = "$rrdtool_bin fetch $rrdFile AVERAGE " . "--start 920804400 --end 920808000 " . ">" . dirname(__FILE__) . "/rrd_updater_moreDS_fetch.txt"; $output = array(); exec($command, $output); $originalFetch = file($data_moreDSUpdaterTxt, FILE_IGNORE_NEW_LINES); echo "comparing original and current fetch\n"; var_dump(array_diff($output, $originalFetch)); ?> --EXPECTF-- comparing original and current fetch array(0) { }
Upload File
Create Folder