2015-09-28 22:09:13 +08:00
|
|
|
<?php
|
2016-02-26 11:09:39 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2015-10-27 20:48:27 +08:00
|
|
|
namespace Tests\Test;
|
2015-09-28 22:09:13 +08:00
|
|
|
|
|
|
|
use Mockery;
|
2017-10-05 19:57:31 +08:00
|
|
|
use PHPUnit\Framework\TestCase as Test;
|
2015-09-28 22:09:13 +08:00
|
|
|
|
2017-10-05 19:57:31 +08:00
|
|
|
abstract class TestCase extends Test
|
2015-09-28 22:09:13 +08:00
|
|
|
{
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
Mockery::close();
|
|
|
|
|
|
|
|
$this->init();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function init()
|
|
|
|
{
|
|
|
|
// To be overloaded by children - saves having to do setUp/mockery::close every time
|
|
|
|
}
|
|
|
|
}
|