Remove constructor as defining the constructor function breaks the functionality of data providers

This commit is contained in:
Nicolas Le Goff
2012-08-01 12:17:30 +02:00
parent 17c0ccc987
commit 76e00d6f0e

View File

@@ -83,6 +83,16 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
self::$time_start = microtime(true);
}
//check if app is set up
if ( ! setup::is_installed()) {
exit("\033[0;31mPhraseanet is not set up\033[0;37m\r\n");
}
//init core
if (null === self::$core) {
self::$core = \bootstrap::getCore();
}
self::updateTablesSchema();
self::createSetOfUserTests();
@@ -102,26 +112,6 @@ abstract class PhraseanetPHPUnitAbstract extends WebTestCase
parent::tearDownAfterClass();
}
/**
* Delete temporay sqlite database
* Create schema using $this->classesMetatdas
* Load DoctrineTestServices
*
* @return
*/
public function __construct()
{
//check if app is set up
if ( ! setup::is_installed()) {
exit("\033[0;31mPhraseanet is not set up\033[0;37m\r\n");
}
//init core
if (null === self::$core) {
self::$core = \bootstrap::getCore();
}
}
/**
* Delete all ressources created during the test
*/