KnpMarkdownBundle/tests/PresetTest.php

56 lines
1.3 KiB
PHP
Raw Normal View History

<?php
namespace Knp\Bundle\MarkdownBundle\Tests;
use Knp\Bundle\MarkdownBundle\Parser\Preset as Preset;
2021-11-08 12:24:51 +01:00
use PHPUnit\Framework\TestCase;
2021-11-08 12:24:51 +01:00
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()));
}
2012-02-25 12:06:40 +01:00
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');
}
2010-07-22 11:20:38 +02:00
}