mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
24 lines
610 B
PHP
24 lines
610 B
PHP
<?php
|
|
|
|
namespace Erusev\Parsedown\Tests\Components\Inlines;
|
|
|
|
use Erusev\Parsedown\Components\Inlines\PlainText;
|
|
use Erusev\Parsedown\Parsing\Excerpt;
|
|
use Erusev\Parsedown\State;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
final class PlainTextTest extends TestCase
|
|
{
|
|
/**
|
|
* @return void
|
|
* @throws \PHPUnit\Framework\ExpectationFailedException
|
|
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
|
|
*/
|
|
public function testPlainTextAPI()
|
|
{
|
|
$Plaintext = Plaintext::build(new Excerpt('foo', 0), new State);
|
|
|
|
$this->assertSame('foo', $Plaintext->text());
|
|
}
|
|
}
|