Ejemplo n.º 1
0
 /**
  * getDisplay test
  */
 public function testGetDisplay()
 {
     $this->object->setMessage('Test Message');
     $this->assertEquals(
         '<div class="notice">Test Message</div>',
         $this->object->getDisplay()
     );
 }
Ejemplo n.º 2
0
 /**
  * get PMA_Message with customized content
  *
  * shorthand for getting a customized message
  *
  * @param string  $message A localized string
  * @param integer $type    A numeric representation of the type of message
  *
  * @return PMA_Message
  * @static
  */
 public static function raw($message, $type = PMA_Message::NOTICE)
 {
     $r = new PMA_Message('', $type);
     $r->setMessage($message);
     return $r;
 }
Ejemplo n.º 3
0
 /**
  * getDisplay test
  *
  * @return void
  */
 public function testGetDisplay()
 {
     $this->object->setMessage('Test Message');
     $this->assertEquals('<div class="notice"><img src="theme/s_notice.png" title="" alt="" /> ' . 'Test Message</div>', $this->object->getDisplay());
 }