Пример #1
0
 /**
  * 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);
 }
Пример #2
0
 /** @test */
 function nonRootAstShouldWrapAsArrayImplicitly()
 {
     $data = Symbol::get('foo');
     $this->assertEquals('foo', igorw\edn\encode($data));
 }