forked from KnpLabs/KnpMarkdownBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPresetTest.php
More file actions
55 lines (41 loc) · 1.25 KB
/
PresetTest.php
File metadata and controls
55 lines (41 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<?php
namespace Knp\Bundle\MarkdownBundle\Tests;
use Knp\Bundle\MarkdownBundle\Parser\Preset as Preset;
use PHPUnit\Framework\TestCase;
class PresetTest extends TestCase
{
public function testMax()
{
$parser = new Preset\Max();
$this->assertEquals($this->getHtml(), $parser->transform($this->getText()));
}
public function testMedium()
{
$parser = new Preset\Medium();
$this->assertEquals($this->getHtml(), $parser->transform($this->getText()));
}
public function testMin()
{
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$parser = new Preset\Min();
$this->assertEquals($this->getHtml(), $parser->transform($this->getText()));
}
public function testLight()
{
$this->markTestIncomplete(
'This test has not been implemented yet.'
);
$parser = new Preset\Light();
$this->assertEquals($this->getHtml(), $parser->transform($this->getText()));
}
protected function getText()
{
return file_get_contents(__DIR__.'/fixtures/big_text.markdown');
}
protected function getHtml()
{
return file_get_contents(__DIR__.'/fixtures/big_text.html');
}
}