mirror of
https://github.com/ivuorinen/bbcodeparser.git
synced 2026-01-26 11:23:58 +00:00
Initial commit with tests, and stuff.
This commit is contained in:
21
tests/TestCase.php
Normal file
21
tests/TestCase.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user