Beispiel #1
0
 /**
  * Test 
  *
  * @return void
  *
  */
 public function testSucccessClass()
 {
     $e = new \Aceer\Message\CMessage();
     $e->success('Hej');
     $t1 = $_SESSION['displayMessage'];
     echo $t1;
 }
Beispiel #2
0
 /**
  * Test 
  *
  * @return void
  *
  */
 public function testCustomClass1()
 {
     $ar = ['danger' => 'myDanger', 'success' => 'mySuccess', 'info' => 'myInfo', 'warning' => 'myWarning'];
     $e = new \Aceer\Message\CMessage($ar);
     $e->success('Success');
     $t1 = $_SESSION['displayMessage'];
     $t2 = "<div id='displayMessage' class='mySuccess'>Success</div>";
     $this->assertEquals($t1, $t2, "Error --------> false custom class success");
 }