1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Add some component level tests

This commit is contained in:
Aidan Woods
2019-02-11 00:12:19 +00:00
parent c0792947a6
commit d8d483bd6a
6 changed files with 166 additions and 10 deletions

View File

@@ -0,0 +1,22 @@
<?php
namespace Erusev\Parsedown\Tests\Components\Inlines;
use Erusev\Parsedown\Components\Inlines\PlainText;
use Erusev\Parsedown\Parsing\Excerpt;
use PHPUnit\Framework\TestCase;
final class PlainTextTest extends TestCase
{
/**
* @return void
* @throws \PHPUnit\Framework\ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*/
public function testPlainTextText()
{
$Plaintext = Plaintext::build(new Excerpt('foo', 0));
$this->assertSame('foo', $Plaintext->text());
}
}