Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshyPHP committed Jun 1, 2019
1 parent d4c84f5 commit 22f6aa9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/testdox.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3546,6 +3546,7 @@ s9e\TextFormatter\Tests\Plugins\BBCodes\Parser
[x] Parsing tests with data set #48
[x] Parsing tests with data set #49
[x] Parsing tests with data set #50
[x] Parsing tests with data set #51
[x] Parsing tests (JavaScript) with data set #0
[x] Parsing tests (JavaScript) with data set #1
[x] Parsing tests (JavaScript) with data set #2
Expand Down Expand Up @@ -3597,6 +3598,7 @@ s9e\TextFormatter\Tests\Plugins\BBCodes\Parser
[x] Parsing tests (JavaScript) with data set #48
[x] Parsing tests (JavaScript) with data set #49
[x] Parsing tests (JavaScript) with data set #50
[x] Parsing tests (JavaScript) with data set #51

s9e\TextFormatter\Tests\Plugins\BBCodes\BBCodes
[x] Examples from BBCodeMonkey.md with data set #0
Expand Down
9 changes: 9 additions & 0 deletions tests/Plugins/BBCodes/ParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,15 @@ function ($configurator)
$configurator->BBCodes->addCustom('[x #ignoreText=true]{TEXT}[/x]', '{TEXT}');
}
],
[
'[x]...[/x][x=]...[/x]',
'<r><X x="..."><s>[x]</s>...<e>[/x]</e></X><X x=""><s>[x=]</s>...<e>[/x]</e></X></r>',
[],
function ($configurator)
{
$configurator->BBCodes->addCustom('[x={TEXT1;useContent}]{TEXT2}[/x]', '');
}
],
];
}
}

0 comments on commit 22f6aa9

Please sign in to comment.