mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:50:10 +00:00
Fix a lot of notices/warnings/deprecation notes in the test directory
This commit is contained in:
parent
efaec26b1d
commit
d55ecb9288
77 changed files with 428 additions and 558 deletions
|
@ -21,7 +21,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Content\Text;
|
||||
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Exception;
|
||||
use Friendica\Content\Text\Markdown;
|
||||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Test\Util\AppMockTrait;
|
||||
|
@ -57,13 +57,15 @@ class MarkdownTest extends MockedTest
|
|||
|
||||
/**
|
||||
* Test convert different input Markdown text into HTML
|
||||
*
|
||||
* @dataProvider dataMarkdown
|
||||
*
|
||||
* @param string $input The Markdown text to test
|
||||
* @param string $expected The expected HTML output
|
||||
* @throws \Exception
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function testConvert($input, $expected)
|
||||
public function testConvert(string $input, string $expected)
|
||||
{
|
||||
$output = Markdown::convert($input);
|
||||
|
||||
|
@ -87,9 +89,8 @@ class MarkdownTest extends MockedTest
|
|||
*
|
||||
* @param string $expectedBBCode Expected BBCode output
|
||||
* @param string $html Markdown text
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function testToBBCode($expectedBBCode, $html)
|
||||
public function testToBBCode(string $expectedBBCode, string $html)
|
||||
{
|
||||
$actual = Markdown::toBBCode($html);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue