Helper refactoring

This commit is contained in:
Frederic Guillot
2016-03-04 20:10:34 -05:00
parent f32507d423
commit 8f3e2b2e5c
141 changed files with 562 additions and 445 deletions

View File

@@ -0,0 +1,17 @@
<?php
require_once __DIR__.'/../Base.php';
use Kanboard\Core\Helper;
class HelperTest extends Base
{
public function testRegister()
{
$helper = new Helper($this->container);
$helper->register('foobar', '\Stdclass');
$this->assertInstanceOf('Stdclass', $helper->foobar);
$this->assertInstanceOf('Stdclass', $helper->getHelper('foobar'));
}
}