Passed
Push — master ( 1d5a75...25467c )
by Caen
03:19 queued 12s
created

MarkdownFacadeTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 10
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A test_render() 0 8 1
1
<?php
2
3
namespace Hyde\Framework\Testing\Unit;
4
5
use Hyde\Framework\Facades\Markdown;
6
use Hyde\Testing\TestCase;
7
8
/**
9
 * Class MarkdownConverterTest.
10
 *
11
 * @covers \Hyde\Framework\Facades\Markdown
12
 */
13
class MarkdownFacadeTest extends TestCase
14
{
15
    public function test_render(): void
16
    {
17
        $markdown = '# Hello World!';
18
19
        $html = Markdown::parse($markdown);
0 ignored issues
show
Deprecated Code introduced by
The function Hyde\Framework\Facades\Markdown::parse() has been deprecated: v0.58.0-beta use Markdown::render() instead. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

19
        $html = /** @scrutinizer ignore-deprecated */ Markdown::parse($markdown);

This function has been deprecated. The supplier of the function has supplied an explanatory message.

The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.

Loading history...
20
21
        $this->assertIsString($html);
22
        $this->assertEquals("<h1>Hello World!</h1>\n", $html);
23
    }
24
}
25