/** * @dataProvider valueProvider */ public function test_renderValue($value, $expect, $roundto, $decpoint, $thousands, $trimzeros, $prefix = '', $postfix = '') { $decimal = new Decimal(array('roundto' => $roundto, 'decpoint' => $decpoint, 'thousands' => $thousands, 'trimzeros' => $trimzeros, 'prefix' => $prefix, 'postfix' => $postfix)); $R = new \Doku_Renderer_xhtml(); $R->doc = ''; $decimal->renderValue($value, $R, 'xhtml'); $this->assertEquals($expect, $R->doc); }