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