PopTest\Data\JsonTest::testDecode PHP Method

testDecode() public method

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