summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/025-post-raw1.h
blob: 37c6ae1703625ac13d6ceabcc913d1deecedc75f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 *
 *  Test superglobal variables _POST
 *      025-post-raw1.phpt
 *
 */




/**
 *  Set up namespace
 */
namespace TestVariables {
    using namespace Php;


    /*
     * Test 
     */
    void post_raw1(void)
    {
        out << "username => "<< POST["username"] << std::endl;
        out << "text => "<< POST["text"] << std::endl;

        /*
        XXX TODO: conversion from ‘Php::Super’ to  ‘Php::Value‘
        Value v = POST;

        out << "Array/Object contains " << v.size() << " items" << std::endl;
        for (auto it=v.begin(), itend = v.end(); it != itend; ++it) {
            out << "["<< it->first << "]="<< it->second << std::endl;
        }
        */
    }

/**
 *  End of namespace
 */
}