/**
  * Data provider with Person models
  *
  * @return array Person models
  */
 public function dataPeople()
 {
     $r = array();
     $person = new PersonModel();
     $person->setRealName('Graham Christensen');
     $person->setGender(PersonModel::G_MALE);
     $r[] = array($person);
     $person = new PersonModel();
     $person->setRealName('Esley Svanas');
     $person->setGender(PersonModel::G_FEMALE);
     $r[] = array($person);
     $person = new PersonModel();
     $person->setRealName('Nina Arsenault');
     $person->setGender(PersonModel::G_OTHER);
     $r[] = array($person);
     return $r;
 }
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Marc Würth <*****@*****.**>
 * @link https://github.com/ravage84/phpunit-selenium2-pageobjects
 * @license http://www.opensource.org/licenses/mit-license.php MIT License
 * @package PHPUnit_Selenium2_PageObjects\Examples
 */
require_once __DIR__ . '/../PersonModel.php';
$name = isset($_POST['your_name']) ? $_POST['your_name'] : '';
$name = htmlspecialchars($name);
$gender = isset($_POST['gender']) ? $_POST['gender'] : '';
$p = new PersonModel();
$p->setRealName($name);
$p->setGender($gender);
?>
<!DOCTYPE html>
<head>
	<title>View your data</title>
</head>
<html>
<body>
<h1 id="title">Viewing your data</h1>
<table>
    <tr>
        <th>Your Name</th>
        <td id="output_your_name"><?php 
echo $p->getRealName();
?>
    </tr>