mirror of
https://github.com/flarum/framework.git
synced 2025-02-15 01:22:52 +08:00
21 lines
355 B
PHP
21 lines
355 B
PHP
![]() |
<?php
|
||
|
namespace tests\Test;
|
||
|
|
||
|
use Mockery;
|
||
|
use PHPUnit_Framework_TestCase;
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|