Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit ef61f32

Browse files
committed
added testFixData_data_every_second()
1 parent d80df6f commit ef61f32

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/pFFA-FixData-Test.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,18 @@ public function testFixData_validate_options_pass()
9494
}
9595
}
9696

97+
public function testFixData_data_every_second()
98+
{
99+
$options = [
100+
'fix_data' => ['speed'],
101+
'data_every_second' => true,
102+
'units' => 'raw',
103+
];
104+
$pFFA = new adriangibbons\phpFITFileAnalysis($this->base_dir . $this->filename, $options);
105+
106+
$this->assertEquals(6847, count($pFFA->data_mesgs['record']['speed']));
107+
}
108+
97109
/**
98110
* @expectedException Exception
99111
*/

0 commit comments

Comments
 (0)