public function test_presentForm()
 {
     $steampunked = new Steampunked\Steampunked();
     $steampunkedView = new Steampunked\SteampunkedView($steampunked);
     $steampunkedViewElements = $steampunkedView->presentForm();
     $this->assertContains('<form', $steampunkedViewElements);
     $this->assertContains('</form>', $steampunkedViewElements);
 }
예제 #2
0
<?php

require __DIR__ . '/lib/steampunked.inc.php';
$view = new Steampunked\SteampunkedView($steampunked);
?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>Steampunked Game</title>
    <link href="steampunked.css" type="text/css" rel="stylesheet" />

</head>
<body class="main-content">
<header>
    <h1>STEAMPUNKED</h1>
</header>
<div class="holder">
<?php 
echo $view->presentStatus();
echo $view->presentForm();
?>
</div>

</body>
</html>