|
|
@ -19,7 +19,9 @@ require_once dirname(__FILE__) . '/../../../exception/GeneralException.php'; |
|
|
|
|
|
|
|
class MsgViewHelperTest extends PHPUnit_Framework_TestCase |
|
|
|
{ |
|
|
|
|
|
|
|
/** |
|
|
|
* @var MsgViewHelper |
|
|
|
*/ |
|
|
|
public $helper; |
|
|
|
|
|
|
|
public function setUp() |
|
|
@ -36,8 +38,6 @@ class MsgViewHelperTest extends PHPUnit_Framework_TestCase |
|
|
|
|
|
|
|
$this->assertSame($this->helper, $this->helper->msg('error message', 'error')); |
|
|
|
$this->assertSame(array('message' => 'error message', 'type' => 'error'), Session::get('MsgViewHelper')); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public function testWrongType() |
|
|
@ -71,5 +71,4 @@ class MsgViewHelperTest extends PHPUnit_Framework_TestCase |
|
|
|
$result = $this->helper->__toString(); |
|
|
|
$this->assertEmpty($result); |
|
|
|
} |
|
|
|
|
|
|
|
} |