public function testWithArrayParams() { $data = ['notificationCode' => '012345678901234567890123456789012345678', 'notificationType' => 'transaction']; $o = new Notification($data); $this->assertEquals($data, $o->toArray()); $this->assertEquals($data['notificationCode'], $o->getNotificationCode()); $this->assertEquals($data['notificationType'], $o->getNotificationType()); }