Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/tests/phpunit/BaseWebTestCase.php

29 lines
795 B

<?php
use Silex\WebTestCase;
//use Symfony\Bundle\FrameworkBundle\Test\WebTestCase
/**
* Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-03-07 at 12:15:50.
*/
class BaseWebTestCase extends WebTestCase
{
/**
* @return \Symfony\Component\HttpKernel\HttpKernel
*/
public function createApplication()
{
// do not use require_once
$app = require __DIR__.'/../../main/inc/global.inc.php';
$app['debug'] = true;
$app['session.test'] = true;
$app['exception_handler']->disable();
// Setting session obj for old libraries
\ChamiloSession::setSession($app['session']);
\UserManager::setEntityManager($app['orm.em']);
//$app['monolog'] = $this->getMock('Monolog\Logger');
return $app;
}
}