1
0
mirror of https://github.com/flarum/core.git synced 2025-08-01 14:10:37 +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 9b51edc939
commit b93d5570d0
7 changed files with 719 additions and 77 deletions

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
}
}