mirror of
https://github.com/ivuorinen/bbcodeparser.git
synced 2026-01-26 11:23:58 +00:00
21 lines
445 B
PHP
21 lines
445 B
PHP
<?php
|
|
|
|
namespace ivuorinen\BBCode\Tests;
|
|
|
|
class TestCase extends \Orchestra\Testbench\TestCase
|
|
{
|
|
protected function getPackageProviders($app): array
|
|
{
|
|
unset($app);
|
|
return ['ivuorinen\BBCode\BBCodeParserServiceProvider'];
|
|
}
|
|
|
|
protected function assertRegexpIsValid(string $pattern = ''): bool
|
|
{
|
|
if (@preg_match($pattern, '') === false) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
}
|