示例#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
文件: EncoderTest.php 项目: igorw/edn
 /** @test */
 function nonRootAstShouldWrapAsArrayImplicitly()
 {
     $data = Symbol::get('foo');
     $this->assertEquals('foo', igorw\edn\encode($data));
 }