public function testGetSameJSON() { $resp = new Response(); $resp->setBody($this->_json); $json1 = $resp->getJSON(); $json2 = $resp->getJSON(); isSame('value-1', $resp->getJSON()->get('key-1')); isSame('value-2', $resp->getJSON()->find('key-2')); isSame($json1, $json2); isSame($json1, $resp->getJSON()); isSame($json2, $resp->getJSON()); $resp->setBody($this->_json); isNotSame($json1, $resp->getJSON()); isNotSame($json2, $resp->getJSON()); isSame($resp->getJSON(), $resp->getJSON()); }