/**
  * @dataProvider dataForClearError
  */
 public function testClearError($data, $key = '')
 {
     $this->WindErrorMessage->addError($data, $key);
     $this->assertEquals($this->WindErrorMessage->getError("content"), "shilong");
     $this->WindErrorMessage->clearError();
     $this->assertEquals($this->WindErrorMessage->getError(), array());
 }
Beispiel #2
0
 public function postHandle()
 {
     $this->forward->setAction('post_' . $this->forward->getAction());
     $this->errorMessage->addError('post_' . $this->errorMessage->getError(0), 0);
 }