public function testDecode() { $json = '{"name" : "test1", "num" : "2" }'; $j = Json::decode($json); $this->assertEquals('test1', $j->name); $this->assertEquals(2, $j->num); }