Initial commit with tests, and stuff.

This commit is contained in:
2018-06-08 13:02:36 +03:00
commit e8fdb5109d
18 changed files with 1181 additions and 0 deletions

21
tests/TestCase.php Normal file
View 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;
}
}