public function testCopyMessages()
 {
     $this->_ntf->error('Error test');
     $ntf2 = new NotificationManager();
     $ntf2->error('Error2 test');
     $ntf2->message('Message test');
     $ntf2->warning('Warning test');
     $this->_ntf->copyMessages($ntf2);
     $data = $this->_ntf->data;
     $this->assertCount(2, $data);
     $this->assertInstanceOf(Notification::class, $data[0]);
     $this->assertEquals('Тест ошибки', $data[0]->message);
     $this->assertEquals(Notification::ERROR, $data[0]->type);
     $this->assertInstanceOf(Notification::class, $data[1]);
     $this->assertEquals('Тест сообщения', $data[1]->message);
     $this->assertEquals(Notification::MESSAGE, $data[1]->type);
 }