Best Atoum code snippet using phpScript
Globals.php
Source:Globals.php
1// Desplegado de variables globales2echo(" \$GLOBALS <br>");3 foreach( $GLOBALS as $cve => $valor){4 echo("$cve -> '$valor' DUMP: ".var_dump($valor)." <br>");5 }6//Resultado >7$GLOBALS8array(16) { ["GLOBALS"]=> *RECURSION* 9 ["_ENV"]=> array(28) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" 10 ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" 11 ["REQUEST_METHOD"]=> string(4) "POST" 12 ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 13 ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" 14 ["SERVER_SOFTWARE"]=> string(8) "Apache/2" 15 ["REMOTE_PORT"]=> string(5) "36574" 16 ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" 17 ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" 18 ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" 19 ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" 20 ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 21 ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" 22 ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" 23 ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" 24 ["SERVER_NAME"]=> string(14) "www.vickus.com" 25 ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" 26 ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" 27 ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" 28 ["HTTP_CONNECTION"]=> string(10) "keep-alive" 29 ["CONTENT_LENGTH"]=> string(2) "56" 30 ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" 31 ["SERVER_PORT"]=> string(2) "80" 32 ["REMOTE_ADDR"]=> string(12) "148.205.56.1" 33 ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 34 ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" 35 ["HTTP_HOST"]=> string(14) "www.vickus.com" 36 ["TZ"]=> string(7) "EST5EDT" 37 } 38 ["HTTP_ENV_VARS"]=> array(28) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" 39 ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" 40 ["REQUEST_METHOD"]=> string(4) "POST" 41 ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 42 ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" 43 ["SERVER_SOFTWARE"]=> string(8) "Apache/2" 44 ["REMOTE_PORT"]=> string(5) "36574" 45 ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" 46 ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" 47 ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" 48 ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" 49 ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 50 ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" 51 ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" 52 ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" 53 ["SERVER_NAME"]=> string(14) "www.vickus.com" 54 ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" 55 ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" 56 ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" 57 ["HTTP_CONNECTION"]=> string(10) "keep-alive" 58 ["CONTENT_LENGTH"]=> string(2) "56" 59 ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" 60 ["SERVER_PORT"]=> string(2) "80" 61 ["REMOTE_ADDR"]=> string(12) "148.205.56.1" 62 ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 63 ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" 64 ["HTTP_HOST"]=> string(14) "www.vickus.com" 65 ["TZ"]=> string(7) "EST5EDT" 66 } 67 ["_POST"]=> array(3) { ["nombre"]=> string(4) "Beto" 68 ["datoOculto"]=> string(23) "Este es un campo oculto" 69 ["ok"]=> string(6) "ENVIAR" 70 } 71 ["HTTP_POST_VARS"]=> array(3) { ["nombre"]=> string(4) "Beto" 72 ["datoOculto"]=> string(23) "Este es un campo oculto" 73 ["ok"]=> string(6) "ENVIAR" 74 } 75 ["_GET"]=> array(0) { } 76 ["HTTP_GET_VARS"]=> array(0) { } 77 ["_COOKIE"]=> array(0) { } 78 ["HTTP_COOKIE_VARS"]=> array(0) { } 79 ["_SERVER"]=> array(32) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" 80 ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" 81 ["REQUEST_METHOD"]=> string(4) "POST" 82 ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 83 ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" 84 ["SERVER_SOFTWARE"]=> string(8) "Apache/2" 85 ["REMOTE_PORT"]=> string(5) "36574" 86 ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" 87 ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" 88 ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" 89 ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" 90 ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 91 ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" 92 ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" 93 ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" 94 ["SERVER_NAME"]=> string(14) "www.vickus.com" 95 ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" 96 ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" 97 ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" 98 ["HTTP_CONNECTION"]=> string(10) "keep-alive" 99 ["CONTENT_LENGTH"]=> string(2) "56" 100 ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" 101 ["SERVER_PORT"]=> string(2) "80" 102 ["REMOTE_ADDR"]=> string(12) "148.205.56.1" 103 ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 104 ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" 105 ["HTTP_HOST"]=> string(14) "www.vickus.com" 106 ["TZ"]=> string(7) "EST5EDT" 107 ["PHP_SELF"]=> string(35) "/phpscript/c05/formularioSimple.php" 108 ["REQUEST_TIME"]=> int(1441901035) 109 ["argv"]=> array(0) { } 110 ["argc"]=> int(0) 111 } 112 ["HTTP_SERVER_VARS"]=> array(32) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" 113 ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" 114 ["REQUEST_METHOD"]=> string(4) "POST" 115 ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 116 ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" 117 ["SERVER_SOFTWARE"]=> string(8) "Apache/2" 118 ["REMOTE_PORT"]=> string(5) "36574" 119 ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" 120 ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" 121 ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" 122 ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" 123 ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 124 ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" 125 ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" 126 ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" 127 ["SERVER_NAME"]=> string(14) "www.vickus.com" 128 ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" 129 ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" 130 ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" 131 ["HTTP_CONNECTION"]=> string(10) "keep-alive" 132 ["CONTENT_LENGTH"]=> string(2) "56" 133 ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" 134 ["SERVER_PORT"]=> string(2) "80" 135 ["REMOTE_ADDR"]=> string(12) "148.205.56.1" 136 ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 137 ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" 138 ["HTTP_HOST"]=> string(14) "www.vickus.com" 139 ["TZ"]=> string(7) "EST5EDT" 140 ["PHP_SELF"]=> string(35) "/phpscript/c05/formularioSimple.php" 141 ["REQUEST_TIME"]=> int(1441901035) 142 ["argv"]=> array(0) { } 143 ["argc"]=> int(0) 144 } 145 ["_FILES"]=> array(0) { } 146 ["HTTP_POST_FILES"]=> array(0) { } 147 ["_REQUEST"]=> array(3) { ["nombre"]=> string(4) "Beto" 148 ["datoOculto"]=> string(23) "Este es un campo oculto" 149 ["ok"]=> string(6) "ENVIAR" 150 } ["valor"]=> *RECURSION* 151 ["cve"]=> string(7) "GLOBALS" 152 } 153GLOBALS -> 'Array' DUMP:154array(28) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" 155 ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" 156 ["REQUEST_METHOD"]=> string(4) "POST" 157 ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" 158 ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" 159 ["SERVER_SOFTWARE"]=> string(8) "Apache/2" 160 ["REMOTE_PORT"]=> string(5) "36574" 161 ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" 162 ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" 163 ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" 164 ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" 165 ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" 166 ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" 167 ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" 168 ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" 169 ["SERVER_NAME"]=> string(14) "www.vickus.com" 170 ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" 171 ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" 172 ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" 173 ["HTTP_CONNECTION"]=> string(10) "keep-alive" 174 ["CONTENT_LENGTH"]=> string(2) "56" 175 ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" 176 ["SERVER_PORT"]=> string(2) "80" 177 ["REMOTE_ADDR"]=> string(12) "148.205.56.1" 178 ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" 179 ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" 180 ["HTTP_HOST"]=> string(14) "www.vickus.com" 181 ["TZ"]=> string(7) "EST5EDT" 182 } 183_ENV -> 'Array' DUMP:184 array(28) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" ["REQUEST_METHOD"]=> string(4) "POST" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" ["SERVER_SOFTWARE"]=> string(8) "Apache/2" ["REMOTE_PORT"]=> string(5) "36574" ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" ["SERVER_NAME"]=> string(14) "www.vickus.com" ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["CONTENT_LENGTH"]=> string(2) "56" ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" ["SERVER_PORT"]=> string(2) "80" ["REMOTE_ADDR"]=> string(12) "148.205.56.1" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" ["HTTP_HOST"]=> string(14) "www.vickus.com" ["TZ"]=> string(7) "EST5EDT" } 185HTTP_ENV_VARS -> 'Array' DUMP:186 array(3) { ["nombre"]=> string(4) "Beto" 187 ["datoOculto"]=> string(23) "Este es un campo oculto" 188 ["ok"]=> string(6) "ENVIAR" } 189_POST -> 'Array' DUMP:190 array(3) { ["nombre"]=> string(4) "Beto" ["datoOculto"]=> string(23) "Este es un campo oculto" ["ok"]=> string(6) "ENVIAR" } 191HTTP_POST_VARS -> 'Array' DUMP:192 array(0) { } 193_GET -> 'Array' DUMP:194 array(0) { } 195HTTP_GET_VARS -> 'Array' DUMP:196 array(0) { } 197_COOKIE -> 'Array' DUMP:198 array(0) { } 199HTTP_COOKIE_VARS -> 'Array' DUMP:200 array(32) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" ["REQUEST_METHOD"]=> string(4) "POST" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" ["SERVER_SOFTWARE"]=> string(8) "Apache/2" ["REMOTE_PORT"]=> string(5) "36574" ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" ["SERVER_NAME"]=> string(14) "www.vickus.com" ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["CONTENT_LENGTH"]=> string(2) "56" ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" ["SERVER_PORT"]=> string(2) "80" ["REMOTE_ADDR"]=> string(12) "148.205.56.1" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" ["HTTP_HOST"]=> string(14) "www.vickus.com" ["TZ"]=> string(7) "EST5EDT" ["PHP_SELF"]=> string(35) "/phpscript/c05/formularioSimple.php" ["REQUEST_TIME"]=> int(1441901035) ["argv"]=> array(0) { } ["argc"]=> int(0) } 201_SERVER -> 'Array' DUMP:202 array(32) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin" ["SCRIPT_NAME"]=> string(35) "/phpscript/c05/formularioSimple.php" ["REQUEST_METHOD"]=> string(4) "POST" ["HTTP_ACCEPT"]=> string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" ["SCRIPT_FILENAME"]=> string(69) "/home/users/web/b676/moo.vickuscom/phpscript/c05/formularioSimple.php" ["SERVER_SOFTWARE"]=> string(8) "Apache/2" ["REMOTE_PORT"]=> string(5) "36574" ["HTTP_USER_AGENT"]=> string(72) "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0" ["HTTP_CACHE_CONTROL"]=> string(9) "max-age=0" ["HTTP_ACCEPT_LANGUAGE"]=> string(14) "en-US,en;q=0.5" ["CONTENT_TYPE"]=> string(33) "application/x-www-form-urlencoded" ["GATEWAY_INTERFACE"]=> string(7) "CGI/1.1" ["SCRIPT_URL"]=> string(35) "/phpscript/c05/formularioSimple.php" ["DOCUMENT_ROOT"]=> string(34) "/home/users/web/b676/moo.vickuscom" ["UNIQUE_ID"]=> string(24) "VfGp6woBcFsAAD3DDAEAAABH" ["SERVER_NAME"]=> string(14) "www.vickus.com" ["HTTP_REFERER"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.htm" ["SERVER_ADMIN"]=> string(31) "cgiadmin@yourhostingaccount.com" ["HTTP_ACCEPT_ENCODING"]=> string(13) "gzip, deflate" ["HTTP_CONNECTION"]=> string(10) "keep-alive" ["CONTENT_LENGTH"]=> string(2) "56" ["SCRIPT_URI"]=> string(56) "http://www.vickus.com/phpscript/c05/formularioSimple.php" ["SERVER_PORT"]=> string(2) "80" ["REMOTE_ADDR"]=> string(12) "148.205.56.1" ["SERVER_PROTOCOL"]=> string(8) "HTTP/1.1" ["REQUEST_URI"]=> string(35) "/phpscript/c05/formularioSimple.php" ["HTTP_HOST"]=> string(14) "www.vickus.com" ["TZ"]=> string(7) "EST5EDT" ["PHP_SELF"]=> string(35) "/phpscript/c05/formularioSimple.php" ["REQUEST_TIME"]=> int(1441901035) ["argv"]=> array(0) { } ["argc"]=> int(0) } 203HTTP_SERVER_VARS -> 'Array' DUMP:204 array(0) { } 205_FILES -> 'Array' DUMP:206 array(0) { } 207HTTP_POST_FILES -> 'Array' DUMP:208 array(3) { ["nombre"]=> string(4) "Beto" ["datoOculto"]=> string(23) "Este es un campo oculto" ["ok"]=> string(6) "ENVIAR" } 209_REQUEST -> 'Array' DUMP:210 array(3) { ["nombre"]=> string(4) "Beto" ["datoOculto"]=> string(23) "Este es un campo oculto" ["ok"]=> string(6) "ENVIAR" } 211valor -> 'Array' DUMP:212string(5) "valor" cve -> 'valor' DUMP: ...
tokenizer.php
Source:tokenizer.php
...44 ->castToString($this->testedInstance->getIterator())->isEqualTo($value)45 ->assert('Tokenizing open and close PHP tags')46 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php ?>'))->isTestedInstance47 ->object($this->testedInstance->getIterator())48 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)49 ->toString50 ->isEqualTo($php)51 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php ?><?php ?>'))->isTestedInstance52 ->object($this->testedInstance->getIterator())53 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)54 ->toString55 ->isEqualTo($php)56 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php ?>foo<?php ?>'))->isTestedInstance57 ->object($this->testedInstance->getIterator())58 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)59 ->toString60 ->isEqualTo($php)61 ->assert('Tokenizing namespace')62 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo; ?>'))->isTestedInstance63 ->object($this->testedInstance->getIterator())64 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)65 ->toString66 ->isEqualTo($php)67 ->object($this->testedInstance->getIterator()->getNamespace(0))68 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)69 ->toString70 ->isEqualTo('namespace foo')71 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo ; ?>'))->isTestedInstance72 ->object($this->testedInstance->getIterator())73 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)74 ->toString75 ->isEqualTo($php)76 ->object($this->testedInstance->getIterator()->getNamespace(0))77 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)78 ->toString79 ->isEqualTo('namespace foo ')80 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo?>'))->isTestedInstance81 ->object($this->testedInstance->getIterator())82 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)83 ->toString84 ->isEqualTo($php)85 ->object($this->testedInstance->getIterator()->getNamespace(0))86 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)87 ->toString88 ->isEqualTo('namespace foo')89 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo ?>'))->isTestedInstance90 ->castToString($this->testedInstance->getIterator())->isEqualTo($php)91 ->object($this->testedInstance->getIterator()->getNamespace(0))92 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)93 ->toString94 ->isEqualTo('namespace foo ')95 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo; namespace bar; ?>'))->isTestedInstance96 ->object($this->testedInstance->getIterator())97 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)98 ->toString99 ->isEqualTo($php)100 ->object($this->testedInstance->getIterator()->getNamespace(0))101 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)102 ->toString103 ->isEqualTo('namespace foo')104 ->object($this->testedInstance->getIterator()->getNamespace(1))105 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)106 ->toString107 ->isEqualTo('namespace bar')108 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo?><?php namespace bar?>'))->isTestedInstance109 ->object($this->testedInstance->getIterator())110 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)111 ->toString112 ->isEqualTo($php)113 ->object($this->testedInstance->getIterator()->getNamespace(0))114 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)115 ->toString116 ->isEqualTo('namespace foo')117 ->object($this->testedInstance->getIterator()->getNamespace(1))118 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)119 ->toString120 ->isEqualTo('namespace bar')121 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo ?><?php namespace bar ?>'))->isTestedInstance122 ->object($this->testedInstance->getIterator())123 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)124 ->toString125 ->isEqualTo($php)126 ->object($this->testedInstance->getIterator()->getNamespace(0))127 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)128 ->toString129 ->isEqualTo('namespace foo ')130 ->object($this->testedInstance->getIterator()->getNamespace(1))131 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)132 ->toString133 ->isEqualTo('namespace bar ')134 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo {} ?>'))->isTestedInstance135 ->object($this->testedInstance->getIterator())136 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)137 ->toString138 ->isEqualTo($php)139 ->object($this->testedInstance->getIterator()->getNamespace(0))140 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)141 ->toString142 ->isEqualTo('namespace foo {}')143 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php namespace foo {} namespace bar {} ?>'))->isTestedInstance144 ->object($this->testedInstance->getIterator())145 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)146 ->toString147 ->isEqualTo($php)148 ->object($this->testedInstance->getIterator()->getNamespace(0))149 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)150 ->toString151 ->isEqualTo('namespace foo {}')152 ->object($this->testedInstance->getIterator()->getNamespace(1))153 ->isInstanceOf(atoum\php\tokenizer\iterators\phpNamespace::class)154 ->toString155 ->isEqualTo('namespace bar {}')156 ->assert('Tokenizing constant definition in script')157 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php const foo = \'foo\'; ?>'))->isTestedInstance158 ->object($this->testedInstance->getIterator())159 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)160 ->toString161 ->isEqualTo($php)162 ->object($this->testedInstance->getIterator()->getConstant(0))163 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)164 ->toString165 ->isEqualTo('const foo = \'foo\'')166 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php const foo = \'foo\'?>'))->isTestedInstance167 ->object($this->testedInstance->getIterator())168 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)169 ->toString170 ->isEqualTo($php)171 ->object($this->testedInstance->getIterator()->getConstant(0))172 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)173 ->toString174 ->isEqualTo('const foo = \'foo\'')175 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php const foo = \'foo\''))->isTestedInstance176 ->object($this->testedInstance->getIterator())177 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)178 ->toString179 ->isEqualTo($php)180 ->object($this->testedInstance->getIterator()->getConstant(0))181 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)182 ->toString183 ->isEqualTo('const foo = \'foo\'')184 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php const foo = \'foo\', bar = \'bar\'; ?>'))->isTestedInstance185 ->object($this->testedInstance->getIterator())186 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)187 ->toString188 ->isEqualTo($php)189 ->object($this->testedInstance->getIterator()->getConstant(0))190 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)191 ->toString192 ->isEqualTo('const foo = \'foo\', bar = \'bar\'')193 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php const foo = \'foo\'?><?php const bar = \'bar\'; ?>'))->isTestedInstance194 ->object($this->testedInstance->getIterator())195 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)196 ->toString197 ->isEqualTo($php)198 ->object($this->testedInstance->getIterator()->getConstant(0))199 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)200 ->toString201 ->isEqualTo('const foo = \'foo\'')202 ->object($this->testedInstance->getIterator()->getConstant(1))203 ->isInstanceOf(atoum\php\tokenizer\iterators\phpConstant::class)204 ->toString205 ->isEqualTo('const bar = \'bar\'')206 ->assert('Tokenizing namespace importation in script')207 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar; ?>'))->isTestedInstance208 ->object($this->testedInstance->getIterator())209 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)210 ->toString211 ->isEqualTo($php)212 ->object($this->testedInstance->getIterator()->getImportation(0))213 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)214 ->toString215 ->isEqualTo('use foo\bar')216 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar?>'))->isTestedInstance217 ->object($this->testedInstance->getIterator())218 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)219 ->toString220 ->isEqualTo($php)221 ->object($this->testedInstance->getIterator()->getImportation(0))222 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)223 ->toString->224 isEqualTo('use foo\bar')225 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar'))->isTestedInstance226 ->object($this->testedInstance->getIterator())227 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)228 ->toString229 ->isEqualTo($php)230 ->object($this->testedInstance->getIterator()->getImportation(0))231 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)232 ->toString233 ->isEqualTo('use foo\bar')234 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar; use bar\foo; ?>'))->isTestedInstance235 ->object($this->testedInstance->getIterator())236 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)237 ->toString238 ->isEqualTo($php)239 ->object($this->testedInstance->getIterator()->getImportation(0))240 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)241 ->toString242 ->isEqualTo('use foo\bar')243 ->object($this->testedInstance->getIterator()->getImportation(1))244 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)245 ->toString246 ->isEqualTo('use bar\foo')247 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar, bar\foo; ?>'))->isTestedInstance248 ->object($this->testedInstance->getIterator())249 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)250 ->toString251 ->isEqualTo($php)252 ->object($this->testedInstance->getIterator()->getImportation(0))253 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)254 ->toString255 ->isEqualTo('use foo\bar, bar\foo')256 ->assert('Tokenizing namespace importation with aliasing in script')257 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php use foo\bar as bar; ?>'))->isTestedInstance258 ->object($this->testedInstance->getIterator())259 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)260 ->toString261 ->isEqualTo($php)262 ->object($this->testedInstance->getIterator()->getImportation(0))263 ->isInstanceOf(atoum\php\tokenizer\iterators\phpImportation::class)264 ->toString265 ->isEqualTo('use foo\bar as bar')266 ->assert('Tokenizing function definition in script')267 ->object($this->testedInstance->resetIterator()->tokenize($php = '<?php function foo() {} ?>'))->isTestedInstance268 ->object($this->testedInstance->getIterator())269 ->isInstanceOf(atoum\php\tokenizer\iterators\phpScript::class)270 ->toString271 ->isEqualTo($php)272 ->castToString($this->testedInstance->getIterator()->getFunction(0))273 ->isEqualTo('function foo() {}')274 ;275 }276}...
phpScript
Using AI Code Generation
1use atoum\phpScript;2$phpScript = new phpScript('1.php');3$phpScript->run();4use atoum\phpScript;5$phpScript = new phpScript('2.php');6$phpScript->run();7use atoum\phpScript;8$phpScript = new phpScript('3.php');9$phpScript->run();10use atoum\phpScript;11$phpScript = new phpScript('4.php');12$phpScript->run();13use atoum\phpScript;14$phpScript = new phpScript('5.php');15$phpScript->run();16use atoum\phpScript;17$phpScript = new phpScript('6.php');18$phpScript->run();19use atoum\phpScript;20$phpScript = new phpScript('7.php');21$phpScript->run();22use atoum\phpScript;23$phpScript = new phpScript('8.php');24$phpScript->run();25use atoum\phpScript;26$phpScript = new phpScript('9.php');27$phpScript->run();28use atoum\phpScript;29$phpScript = new phpScript('10.php');30$phpScript->run();31use atoum\phpScript;32$phpScript = new phpScript('11.php');33$phpScript->run();34use atoum\phpScript;
phpScript
Using AI Code Generation
1require_once 'phpScript.php';2$phpScript = new phpScript();3$phpScript->run();4require_once 'phpScript.php';5$phpScript = new phpScript();6$phpScript->run();7require_once 'phpScript.php';8$phpScript = new phpScript();9$phpScript->run();10require_once 'phpScript.php';11$phpScript = new phpScript();12$phpScript->run();13require_once 'phpScript.php';14$phpScript = new phpScript();15$phpScript->run();16require_once 'phpScript.php';17$phpScript = new phpScript();18$phpScript->run();19require_once 'phpScript.php';20$phpScript = new phpScript();21$phpScript->run();22require_once 'phpScript.php';23$phpScript = new phpScript();24$phpScript->run();25require_once 'phpScript.php';26$phpScript = new phpScript();27$phpScript->run();28require_once 'phpScript.php';29$phpScript = new phpScript();30$phpScript->run();31require_once 'phpScript.php';32$phpScript = new phpScript();33$phpScript->run();34require_once 'phpScript.php';
phpScript
Using AI Code Generation
1use \mageekguy\atoum\php;2$script = new php\script();3$script->addDefaultReport();4$script->run();5use \mageekguy\atoum\php;6$script = new php\script();7$script->addDefaultReport();8$script->run();9use \mageekguy\atoum\php;10$script = new php\script();11$script->addDefaultReport();12$script->run();13use \mageekguy\atoum\php;14$script = new php\script();15$script->addDefaultReport();16$script->run();17use \mageekguy\atoum\php;18$script = new php\script();19$script->addDefaultReport();20$script->run();21use \mageekguy\atoum\php;22$script = new php\script();23$script->addDefaultReport();24$script->run();25use \mageekguy\atoum\php;26$script = new php\script();27$script->addDefaultReport();28$script->run();
phpScript
Using AI Code Generation
1require_once 'phpScript.php';2$script = new phpScript();3$script->addFile('2.php');4$script->run();5require_once 'phpScript.php';6$script = new phpScript();7$script->addFile('3.php');8$script->run();9require_once 'phpScript.php';10$script = new phpScript();11$script->addFile('4.php');12$script->run();13require_once 'phpScript.php';14$script = new phpScript();15$script->addFile('5.php');16$script->run();17require_once 'phpScript.php';18$script = new phpScript();19$script->addFile('6.php');20$script->run();21require_once 'phpScript.php';22$script = new phpScript();23$script->addFile('7.php');24$script->run();25require_once 'phpScript.php';26$script = new phpScript();27$script->addFile('8.php');28$script->run();29require_once 'phpScript.php';30$script = new phpScript();31$script->addFile('9.php');32$script->run();33require_once 'phpScript.php';34$script = new phpScript();35$script->addFile('10.php');36$script->run();37require_once 'phpScript.php';38$script = new phpScript();39$script->addFile('11.php');40$script->run();41require_once 'phpScript.php';42$script = new phpScript();43$script->addFile('12.php');44$script->run();
phpScript
Using AI Code Generation
1use atoum\phpScript as script;2$script = new script('php');3$script->addPath(__DIR__ . '/lib');4$script->addPath(__DIR__ . '/vendor');5$script->run('myScript.php');6use atoum\phpScript as script;7$script = new script('php');8use atoum\phpScript as script;9$script = new script('php');10use atoum\phpScript as script;11$script = new script('php');12use atoum\phpScript as script;13$script = new script('php');14use atoum\phpScript as script;15$script = new script('php');
phpScript
Using AI Code Generation
1$phpScript = new \mageekguy\atoum\scripts\php();2$phpScript->addDefaultReport();3$phpScript->run();4PHP 5.5.9-1ubuntu4.5 (cli) (built: May 5 2014 16:34:18) 5Copyright (c) 1997-2014 The PHP Group6Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies7 with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2014, by Zend Technologies
phpScript
Using AI Code Generation
1include('phpScript.php');2$obj = new phpScript();3$obj->executeScript('2.php');4include('phpScript.php');5$obj = new phpScript();6$obj->executeScript('2.php');7$op = $obj->getOutput();
phpScript
Using AI Code Generation
1$phpScript = new \atoum\phpScript();2$phpScript->addDirectory('C:\xampp\htdocs\Atoum');3$phpScript->run();4echo $phpScript->getOutput();5namespace Atoum;6$phpScript = new \atoum\phpScript();7$phpScript->addDirectory('C:\xampp\htdocs\Atoum');8$phpScript->run();9echo $phpScript->getOutput();10$phpScript = new \atoum\phpScript();11$phpScript->addDirectory('C:\xampp\htdocs\Atoum');12$phpScript->run();13echo $phpScript->getOutput();14namespace Atoum;15$phpScript = new \atoum\phpScript();16$phpScript->addDirectory('C:\xampp\htdocs\Atoum');17$phpScript->run();18echo $phpScript->getOutput();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Trigger Selenium automation tests on a cloud-based Grid of 3000+ real browsers and operating systems.
Test now for FreeGet 100 minutes of automation test minutes FREE!!