mirror of
https://github.com/flarum/core.git
synced 2025-07-25 10:41:24 +02:00
Removed phpsec as the testing library, added phpunit and converted the first spec test to phpunit format. Also added mockery.
This commit is contained in:
20
tests/Test/TestCase.php
Normal file
20
tests/Test/TestCase.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user