public function test_Transform() { $this->assertEquals('~0', Encoder::transform('~')); $this->assertEquals('~1', Encoder::transform('/')); $this->assertEquals('A', Encoder::transform('A')); $this->assertEquals('!!!!', Encoder::transform('!!!!')); }
/** * Get the JSON pointer for this property * * @return string */ public function getPath() { return sprintf("/%s", Encoder::transform($this->name)); }