mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Fix deprecation notice in MessageWidgetTest
Creating dynamic properties in an object is deprecated in PHP 8.2. Reference: https://www.php.net/manual/en/migration82.deprecated.php
This commit is contained in:
@@ -9,13 +9,21 @@
|
||||
namespace Zotlabs\Tests\Unit\Widget;
|
||||
|
||||
use App;
|
||||
use PHPUnit\Framework\Attributes\Before;
|
||||
use Zotlabs\Widget\Messages;
|
||||
use Zotlabs\Tests\Unit\Module\TestCase;
|
||||
|
||||
class MessagesWidgetTest extends TestCase
|
||||
{
|
||||
private string $output;
|
||||
|
||||
use \phpmock\phpunit\PHPMock;
|
||||
|
||||
#[Before]
|
||||
public function setup(): void {
|
||||
$this->output = '';
|
||||
}
|
||||
|
||||
/**
|
||||
* List of file tags should be empty if there are no file tags.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user