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

Expand public API of Components

Ref: https://github.com/erusev/parsedown/issues/694
This commit is contained in:
Aidan Woods
2019-02-16 20:31:20 +00:00
parent 3c0b528d54
commit 3ccd64a9a1
43 changed files with 813 additions and 76 deletions

View File

@@ -4,6 +4,7 @@ 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
@@ -13,9 +14,9 @@ final class PlainTextTest extends TestCase
* @throws \PHPUnit\Framework\ExpectationFailedException
* @throws \SebastianBergmann\RecursionContext\InvalidArgumentException
*/
public function testPlainTextText()
public function testPlainTextAPI()
{
$Plaintext = Plaintext::build(new Excerpt('foo', 0));
$Plaintext = Plaintext::build(new Excerpt('foo', 0), new State);
$this->assertSame('foo', $Plaintext->text());
}