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

Return statebearer instead of state

This commit is contained in:
Aidan Woods 2021-10-12 18:12:00 +01:00
parent efaf20d005
commit 2ea4bece92
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -12,6 +12,7 @@ use Erusev\Parsedown\Configurables\SafeMode;
use Erusev\Parsedown\Configurables\StrictMode;
use Erusev\Parsedown\Parsedown;
use Erusev\Parsedown\State;
use Erusev\Parsedown\StateBearer;
use PHPUnit\Framework\TestCase;
class ParsedownTest extends TestCase
@ -39,7 +40,7 @@ class ParsedownTest extends TestCase
return [\dirname(__FILE__).'/data/'];
}
protected function initState(string $testName): State
protected function initState(string $testName): StateBearer
{
return new State([
new SafeMode(\substr($testName, 0, 3) === 'xss'),