Skip to content

Commit

Permalink
added testFixData_data_every_second()
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangibbons committed Oct 17, 2015
1 parent d80df6f commit ef61f32
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/pFFA-FixData-Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ public function testFixData_validate_options_pass()
}
}

public function testFixData_data_every_second()
{
$options = [
'fix_data' => ['speed'],
'data_every_second' => true,
'units' => 'raw',
];
$pFFA = new adriangibbons\phpFITFileAnalysis($this->base_dir . $this->filename, $options);

$this->assertEquals(6847, count($pFFA->data_mesgs['record']['speed']));
}

/**
* @expectedException Exception
*/
Expand Down

0 comments on commit ef61f32

Please sign in to comment.