示例#1
0
 /**
  * @param array $messages
  * @param integer $severity
  */
 public function __construct(array $messages, $severity)
 {
     Assert::isInteger($severity);
     parent::__construct(Messages::LOG, null, [self::PARAM_LOG_MESSAGES => $messages, self::PARAM_LOG_SEVERITY => $severity]);
 }
示例#2
0
 /** @covers Brickoo\Component\Messaging\GenericMessage::getResponseList */
 public function testGetResponse()
 {
     $message = new GenericMessage("test.message");
     $this->assertInstanceOf("\\Brickoo\\Component\\Common\\ArrayList", $message->getResponseList());
 }
示例#3
0
 /** @param \Exception $exception */
 public function __construct(\Exception $exception)
 {
     parent::__construct(Messages::EXCEPTION, null, [self::PARAM_EXCEPTION => $exception]);
 }
示例#4
0
 /** @param string $errorMessage */
 public function __construct($errorMessage)
 {
     Assert::isString($errorMessage);
     parent::__construct(Messages::ERROR, null, [self::PARAM_ERROR_MESSAGE => $errorMessage]);
 }