Example #1
0
 function testGetFormRequestPost()
 {
     $app = new Application();
     $_POST['post'] = "Today I learnt that you can only treat your friends so badly before they quit working for you and go and work for Halutte(sp)";
     $array = $app->getArrayFromRequest();
     $this->assertEquals("Today I learnt that you can only treat your friends so badly before they quit working for you and go and work for Halutte(sp)", $array['post']);
 }
Example #2
0
<?php

require_once 'app.php';
include 'header.php';
$app = new Application($_POST);
?>
Welcome to drive Safe<br>
These are the rules on barbados roads: <br><ul>
<?php 
for ($i = 0; $i < 13; $i++) {
    ?>
<li>
<?php 
    echo $app->getArrayFromRequest()[$i];
}
?>
</li></ul>