* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Flarum\Tests\Test; use Mockery; use PHPUnit\Framework\TestCase as Test; abstract class TestCase extends Test { public function setUp() { Mockery::close(); $this->init(); } protected function init() { // To be overloaded by children - saves having to do setUp/mockery::close every time } }