<title></title>
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    </head>
    <body>
        <h1>Flash Message Test</h1>
        <div class="text-primary" style="font-size:20px; margin-left:20px;">
        <?php 
// put your code here
session_start();
$SESSION['flashmessages'] = array('testing' => 'FlashMessage Test');
include './models/IMessage.php';
include './models/MessageClass.php';
include './models/FlashMessageClass.php';
$flashMessage = new FlashMessageClass();
$flashMessage->addMessage('test', 'my test message');
var_dump($flashMessage->getAllMessages());
echo '<br />';
var_dump($flashMessage instanceof IMessage);
echo '<br />';
var_dump($flashMessage->removeMessage('test'));
echo '<br />';
var_dump($flashMessage->getAllMessages());
?>
        </div>
        
    </body>
</html>
<!DOCTYPE html>

<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    </head>
    <body>
        <h1>Show Flash Message</h1>
        <div class="text-primary" style="font-size:20px; margin-left:20px;">
        <?php 
// put your code here
session_start();
//        $SESSION['flashmessages'] = array('testing' => 'FlashMessage Test');
include './models/IMessage.php';
include './models/MessageClass.php';
include './models/FlashMessageClass.php';
$flashMessage = new FlashMessageClass();
$messages = $flashMessage->getAllMessages();
print_r($messages);
?>
        </div>
        
    </body>
</html>
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <!-- Latest compiled and minified CSS -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
        <!-- Optional theme -->
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
    </head>
    <body>
        <h1>Add Flash Message</h1>
        <div class="text-primary" style="font-size:20px; margin-left:20px;">
            
        <?php 
// put your code here
session_start();
include './models/IMessage.php';
include './models/MessageClass.php';
include './models/FlashMessageClass.php';
$message = new FlashMessageClass();
$message->addMessage('test', 'my test message');
var_dump($message instanceof IMessage);
?>
        </div>
    </body>
</html>