public function startTestSuite(PHPUnit_Framework_TestSuite $suite) { if (!class_exists($suite->getName())) { return; } if (!self::$booted && self::$logSQL) { self::$booted = true; $app = new \Alchemy\Phrasea\Application(\Alchemy\Phrasea\Application::ENV_TEST); self::$conn = $app['dbal.provider']($app['db.info']($app['db.appbox.info'])); unset($app); self::$conn->connect(); $schema = self::$conn->getSchemaManager(); $tableTest = new \Doctrine\DBAL\Schema\Table("tests"); /* Add some columns to the table */ $tableTest->addColumn("id", "integer", array("unsigned" => true, "autoincrement" => true)); $tableTest->addColumn("test", "string", array("length" => 256)); $tableTest->addColumn("name", "string", array("length" => 256)); $tableTest->addColumn("status", "string", array("length" => 16)); $tableTest->addColumn("duration", "float"); /* Add a primary key */ $tableTest->setPrimaryKey(array("id")); $schema->dropAndCreateTable($tableTest); } }