File: rrd_014.phpt

package info (click to toggle)
php-rrd 2.0.3%2B1.1.3-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 496 kB
  • sloc: ansic: 2,447; xml: 665; makefile: 58; php: 3
file content (55 lines) | stat: -rw-r--r-- 845 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
--TEST--
rrd_lastupdate test
--SKIPIF--
<?php
include('skipif.inc');
include('data/definition.inc');
foreach(array($data_updatedDb, $data_moreDSDb) as $file) {
	if (!file_exists($file)) {
		die("skip $file doesnt' exist");
	}
}
?>
--FILE--
<?php
include('data/definition.inc');
var_dump(rrd_lastupdate($data_updatedDb));
var_dump(rrd_lastupdate($data_moreDSDb));
?>
--EXPECTF--
array(4) {
  ["last_update"]=>
  int(920808900)
  ["ds_cnt"]=>
  int(1)
  ["ds_navm"]=>
  array(1) {
    [0]=>
    string(5) "speed"
  }
  ["data"]=>
  array(1) {
    [0]=>
    string(5) "12423"
  }
}
array(4) {
  ["last_update"]=>
  int(920808900)
  ["ds_cnt"]=>
  int(2)
  ["ds_navm"]=>
  array(2) {
    [0]=>
    string(6) "speed1"
    [1]=>
    string(6) "speed2"
  }
  ["data"]=>
  array(2) {
    [0]=>
    string(5) "12423"
    [1]=>
    string(5) "11423"
  }
}