public function stringify($value) { return json_encode($value); }
/** * @test * @dataProvider stringifyExamples */ public function stringifyWorks($value, $expected) { $helper = new JsonHelper(); $result = $helper->stringify($value); $this->assertEquals($expected, $result); }