stringify() public method

JSON encode the given value
public stringify ( mixed $value ) : string
$value mixed
return string
 /**
  * @test
  * @dataProvider stringifyExamples
  */
 public function stringifyWorks($value, $expected)
 {
     $helper = new JsonHelper();
     $result = $helper->stringify($value);
     $this->assertEquals($expected, $result);
 }