Example #1
0
 public function testMutatorsAccessors()
 {
     self::assertCount(0, $this->message->getNotificationPayload());
     $this->message->addNotificationPayload('first', 'first');
     self::assertCount(1, $this->message->getNotificationPayload());
     $this->message->setNotificationPayload(['first' => 'first', 'second' => 'second']);
     self::assertCount(2, $this->message->getNotificationPayload());
     $this->message->clearNotificationPayload();
     self::assertCount(0, $this->message->getNotificationPayload());
 }