mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
Fix unit test names, property and function visibility
This commit is contained in:
@@ -4,13 +4,13 @@ use Alchemy\Phrasea\Core\PhraseaEvents;
|
||||
use Silex\Application;
|
||||
use Symfony\Component\EventDispatcher\Event;
|
||||
|
||||
class API_V1_TimerTest extends PhraseanetPHPUnitAbstract
|
||||
class API_V1_TimerTest extends \PhraseanetTestCase
|
||||
{
|
||||
public function testRegister()
|
||||
{
|
||||
$start = microtime(true);
|
||||
|
||||
$app = new Application();
|
||||
$app = $this->loadApp();
|
||||
$dispatcher = $this->getMock('Symfony\Component\EventDispatcher\EventDispatcherInterface');
|
||||
$dispatcher->expects($this->exactly(9))
|
||||
->method('addListener');
|
||||
@@ -23,7 +23,7 @@ class API_V1_TimerTest extends PhraseanetPHPUnitAbstract
|
||||
|
||||
public function testTriggerEvent()
|
||||
{
|
||||
$app = new Application();
|
||||
$app = $this->loadApp();
|
||||
$app->register(new API_V1_Timer());
|
||||
|
||||
$app['dispatcher']->dispatch(PhraseaEvents::API_RESULT, new Event());
|
||||
|
Reference in New Issue
Block a user