/** * Transforms an EDN data structure into its string representation * @param Object $edn A EDN data structure such as a Vector, Map, List etc. * @return string */ protected function _encode($edn) { return \igorw\edn\encode($edn); }
/** @test */ function nonRootAstShouldWrapAsArrayImplicitly() { $data = Symbol::get('foo'); $this->assertEquals('foo', igorw\edn\encode($data)); }