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:
22
tests/src/Components/Inlines/PlainTextTest.php
Normal file
22
tests/src/Components/Inlines/PlainTextTest.php
Normal 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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user