1
0
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:
kirkbushell
2015-09-28 15:09:13 +01:00
parent 538a3e5e98
commit 7706714ad9
7 changed files with 719 additions and 77 deletions

20
tests/Test/TestCase.php Normal file
View 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
}
}