public function test_quit() { $steampunked = new Steampunked\Steampunked(); $controller = new Steampunked\SteampunkedController($steampunked); $testPost = ['quit' => '']; $controller->process($testPost); $this->assertEquals($controller->getPage(), 'end.php'); }
<?php require __DIR__ . '/lib/steampunked.inc.php'; $controller = new Steampunked\SteampunkedController($steampunked); $controller->process($_POST); header("location: " . $controller->getPage()); exit;