mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
31 lines
581 B
PHP
31 lines
581 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Flarum.
|
|
*
|
|
* (c) Toby Zerner <toby.zerner@gmail.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace Tests\Test;
|
|
|
|
use Mockery;
|
|
use PHPUnit_Framework_TestCase;
|
|
|
|
abstract class TestCase extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function setUp()
|
|
{
|
|
Mockery::close();
|
|
|
|
$this->init();
|
|
}
|
|
|
|
protected function init()
|
|
{
|
|
// To be overloaded by children - saves having to do setUp/mockery::close every time
|
|
}
|
|
}
|